public function isEnd() { if ($this->position > $this->length() - 1) { return true; } return false; }