protected function _readHasErrors($object)
    {
        if ($object instanceof EntityInterface && $object->hasErrors()) {
            return true;
        }

        if (is_array($object)) {
            foreach ($object as $value) {
                if ($this->_readHasErrors($value)) {
                    return true;
                }
            }
        }

        return false;
    }
protected function _readHasErrors($object)
    {
        if ($object instanceof EntityInterface && $object->hasErrors()) {
            return true;
        }

        if (is_array($object)) {
            foreach ($object as $value) {
                if ($this->_readHasErrors($value)) {
                    return true;
                }
            }
        }

        return false;
    }
protected function _readHasErrors ( $ object ) { if ( $ object instanceof EntityInterface && $ object -> hasErrors ( ) ) { return true ; } if ( is_array ( $ object ) ) { foreach ( $ object as $ value ) { if ( $ this -> _readHasErrors ( $ value ) ) { return true ; } } } return false ; }
Reads if there are errors for one or many objects.

@param mixed $object The object to read errors from.
@return bool
Reads if there are errors for one or many objects .