changed isset to property_exists