// if there are no tokens in the trimmed text return true
if (0 == trimmedText.length()) {
return true;
} else {
Scanner scanner = new PhpLexer(new StringReader(trimmedText));
scanner.initialize(PhpLexer.ST_PHP_IN_SCRIPTING);
try {
return scanner.yylex() == null;
} catch (IOException e) {
return false;
}