public function hasDoing($hookName = null) : bool
    {
        if (null === $hookName) {
            return ! empty($this->current);
        }

        $hookName = $this->sanitizeKeyName($hookName);
        return $hookName && isset($this->current[$hookName]);
    }