original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Reads if there are errors for one or many objects.
  
  @param mixed $object The object to read errors from.
  @return bool
docstring_tokens: Reads if there are errors for one or many objects .