How-to articles, tricks, and solutions about ATTRIBUTES
How do I check if an object has an attribute?
You can use the hasattr function to check if an object has an attribute.