public function hasFiles($name = null)
    {
        if (!empty($this->files)) {
            // if $name is null, then a global checking must be done
            return $this->getFilesbag()->hasFiles($name);
        }

        // By default
        return false;
    }
public function hasFiles($name = null)
    {
        if (!empty($this->files)) {
            // if $name is null, then a global checking must be done
            return $this->getFilesbag()->hasFiles($name);
        }

        // By default
        return false;
    }
public function hasFiles ( $ name = null ) { if ( ! empty ( $ this -> files ) ) { // if $name is null, then a global checking must be done return $ this -> getFilesbag ( ) -> hasFiles ( $ name ) ; } // By default return false ; }
Checks whether we at least one file

@param string $name Can be optionally filtered by a name
@return boolean Depending on success
Checks whether we at least one file