public function seekNextLine() { $line = $this->current()->getLine(); while (true) { $this->next(); if (!$this->valid()) { return false; } elseif ($this->current()->getLine() > $line) { return true; } } }