Changed property check for object

Isset is returning false when checking private field, so I changed it to property_exists.