private function isCurrentLineLastLineInDocument() : bool { return $this->offset + $this->currentLineNb >= $this->totalNumberOfLines - 1; }