valid()) { if ($string == $this->current()->getName()) { return $this->current(); } $this->next(); } return null; } }