Returns true if node is in DOM tree.
true
node
bool isNodeInDOM(Node node) { return document.body!.contains(node); }