public function first() { if (!$this->offsetExists(0)) { throw new NotFoundException("No first element exist"); } return $this->offsetGet(0); }