<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hasvar(obj, var):
 """ Checks if object, obj has a variable var return True or False """

  if hasattr(obj, var):
    return not callable(getattr(obj, var))
  return False