public function __isset($prop) { $method = 'get_' . $prop; if (method_exists($this, $method)) { return true; } return parent::__isset($prop); }