function getNodeEvents(node, name = null, fn = null) {
    const cache = (node[uid] = node[uid] || []);
    const data = { all: cache, evt: null, found: null };
    if (name && fn && size(cache) > 0) {
        each(cache, (cl, i) => {
            if (cl.eventName == name && cl.fn.toString() == fn.toString()) {
                data.found = true;
                data.evt = i;
                return false;
            }
        });
    }
    return data;
}
Get nde events
return node events and optionally
check if the node has already a specific event
to avoid duplicated callbacks

@param {node} node
@param {string} name event name
@param {object} fn callback
@returns {object}