code: function eventCheck(obj, type) {
    var t;
    
    if (!obj._events) {
      return false;
    }
    
    t = obj._events[type]
    
    if (typeof t === 'function') {
      return true;
    }
    if (Array.isArray(t) && t.length) {
      return true;
    }
    return false;
  }
docs: ====== util functions ======