How to Check if an Object Has an Attribute in Python | CodeTrail