public function hasOperationError()
    {
        if (empty($this->sortedQueue)) {
            return false;
        }
        $current = current($this->sortedQueue)
                 ? current($this->sortedQueue)
                 : end($this->sortedQueue);

        return (bool) ($current::STATE_FAILURE & $current->getState());
    }