Returns true if the current line is a comment line.
Boolean Returns true if the current line is a comment line, false otherwise
private function isCurrentLineComment() {
//checking explicitly the first char of the trim is faster than loops or strpos
$ltrimmedLine = ltrim($this->currentLine, ' ');
return $ltrimmedLine[0] === '#';
}