switch from hasattr to check the contents of the internal array instead of the class.