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

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

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

@param HandlerInterface $handler
@return bool
Checks if handler is already registered