public function hasFile()
    {
        foreach ($this->fields() as $field) {
            if ($field instanceof Field\File) {
                return true;
            }
        }

        return false;
    }
public function hasFile()
    {
        foreach ($this->fields() as $field) {
            if ($field instanceof Field\File) {
                return true;
            }
        }

        return false;
    }
public function hasFile ( ) { foreach ( $ this -> fields ( ) as $ field ) { if ( $ field instanceof Field \ File ) { return true ; } } return false ; }
Determine if form fields has files.

@return bool
Determine if form fields has files .