lib/Elastica/Multi/ResultSet.php
public function hasError(): bool
    {
        foreach ($this->getResultSets() as $resultSet) {
            if ($resultSet->getResponse()->hasError()) {
                return true;
            }
        }

        return false;
    }
public function hasError(): bool
    {
        foreach ($this->getResultSets() as $resultSet) {
            if ($resultSet->getResponse()->hasError()) {
                return true;
            }
        }

        return false;
    }
public function hasError ( ) : bool { foreach ( $ this -> getResultSets ( ) as $ resultSet ) { if ( $ resultSet -> getResponse ( ) -> hasError ( ) ) { return true ; } } return false ; }
There is at least one result set with error.

@return bool
There is at least one result set with error .