public function hasProperty($property) { if (property_exists($this, $property) || !is_null($this->data($property))) { return true; } return false; }