public function offsetExists($name) { if ($name === 'url' || $name === 'data') { return true; } return isset($this->params[$name]); }