Remove getNodeText(), add conditionIsTrueOrEmpty(), add a few comments.
Remove unneeded code.