/** * Magic is set checker. * * @param string $name the property or param name to check * * @return bool whether the value is set */ public function __isset($name) { return $name && parent::__isset($name) || isset($this->params[$name]); }