def has_player(accessing_obj, accessed_obj, *args, **kwargs):
 return (hasattr(accessing_obj, 'has_player') and accessing_obj.has_player)

def has_player ( accessing_obj , accessed_obj , * args , ** kwargs ) : return ( hasattr ( accessing_obj , 'has_player' ) and accessing_obj . has_player )
only returns true if accessing_obj has_player is true .