Checks if object, obj has a variable var
    
    return True or False

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