protected function containsfile(array $fields)
    {
        $filtered = array_filter($fields, function ($field) {
            return $field->isFile();
        });

        return (count($filtered) > 0);
    }
protected function containsfile(array $fields)
    {
        $filtered = array_filter($fields, function ($field) {
            return $field->isFile();
        });

        return (count($filtered) > 0);
    }
protected function containsfile ( array $ fields ) { $ filtered = array_filter ( $ fields , function ( $ field ) { return $ field -> isFile ( ) ; } ) ; return ( count ( $ filtered ) > 0 ) ; }
Checks if a given fields array conatins at least one file field

@param array

@return bool
Checks if a given fields array conatins at least one file field