Check a given object property is defined