public function removeEntryNamed($name) { if (isset($this->entries[$name])) { unset($this->entries[$name]); return; } throw new EntityNotFoundException('No entry named ' . $name); }