Returns true if rootNode contains target.
true
rootNode
target
bool nodeTreeContains(Node rootNode, Node target) { return nodeTreeContainsAny(rootNode, [target]); }