code: public function methodFail($errors = null)
      {
          if ($errors === null) {
              return $this->methodResult(false);
          }
  
          if (!is_array($errors)) {
              $errors = [$errors];
          }
  
          return $this->methodResult(false, ['errors' => $errors]);
      }
docs: Standard method for returning  result from the method.
  
  @param array $errors
  
  @return array