human
know if an object has an attribute
assistant
Here is some code to check if object `a` has property 'property'

if hasattr(a, 'property'):
    pass

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.