To check if a Object has an Attribute in Python you can use the snippet below.
Sample Python
if hasattr(myObject, 'myAttributeName'): # myObject.myAttributeName exists.
To check if a Object has an Attribute in Python you can use the snippet below.
if hasattr(myObject, 'myAttributeName'): # myObject.myAttributeName exists.