I think you mean `if the previous node in the current tree was a text node`. (`lastNodeSeen()` is clear by itself, but in other contexts `last` sounds like the last child. Might be worth renaming it to `prev` and `prevNodeSeen()`, or just `prevNode()`.)