Updated object check to include both properties and accessors