code: public function hasFile()
      {
          if ($this->model->getBehavior('Storage') !== null) {
              return true;
          }
  
          foreach ($this->fields as $field) {
              if ($field->hasFile()) {
                  return true;
              }
          }
  
          return false;
      }
docs: [[@doctodo method_description:hasFile]].
  
  @return [[@doctodo return_type:hasFile]] [[@doctodo return_description:hasFile]]