public function handlerAlreadyRegistered(HandlerInterface $handler)
    {
        foreach ($this->getHandlerIterator() as $registeredHandler) {
            if ($registeredHandler === $handler) {
                return true;
            }
        }

        return false;
    }