input: Write a python function to check if a number is even using a helper function.
  assert is_even(4) == True
  assert is_even(7) == False
  assert is_even(0) == True
output: def is_even(n):
      def helper(x):
          return x % 2 == 0
      return helper(n)