isEmpty(node) {
        return _.isEmpty(node.children) && _.isEmpty(node.attributes);
    }
Check if the node is empty (no attributes and no children).
@param {{}} node - The node.
@returns {boolean} True if empty, false otherwise.