hasAncestor(node) {
        let hasAncestor = false;
        this.recurseUp(n => !(hasAncestor = n.id === node.id));

        return hasAncestor;
    }
Get whether the given node is an ancestor of this node.

@param {TreeNode} node Node object.
@return {boolean} True if node is an ancestor or the given node