isHookAvailable(hookName) {
    const hooks = this.hooks[hookName];

    if (this.disabledHooks[hookName] === true
      || !Array.isArray(hooks)
      || hooks.length === 0) return false;

    let disabledHooks = this.disabledHooks[hookName] || [];
    if (typeof disabledHooks === 'string') disabledHooks = [disabledHooks];

    return !!hooks.filter(h => !disabledHooks.includes(h.name)).length;
  }
Check if any hooks are available

@param {string} hookName
@private