def is_user_registered(user_id):
 if (user_id is None):
  return False
 user_settings = user_models.UserSettingsModel.get(user_id, strict=False)
 return bool(user_settings)

def is_user_registered ( user_id ) : if ( user_id is None ) : return False user_settings = user_models . UserSettingsModel . get ( user_id , strict = False ) return bool ( user_settings )
checks if a user is registered with given user_id .