Helper function to check if an object has a property
The object to check
The property to check for
True if the object has the property
Helper function to check if an object has a property