protected function getNamedItem($name) { if (array_key_exists($name, $this->items)) { return $this->items[$name]; } return null; }