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, that is,
dataset/ETHPy150Open evennia/evennia/evennia/locks/lockfuncs.py/has_player