Check whether a property exists in an object

Useful while comparing two separate trees.