Replaced property_exists() by  Object::canSetProperty()