hasChild(node, name) {
        return _.some(node.children, { name });
    }
Returns a value indicating whether the node has a child with the given name.
@param {{}} node - The parent node.
@param {string} name - The name of the child node.
@returns {boolean} True if found, false otherwise.