public static function hasFile($key) {
        if (isset($_FILES[$key]) === false || (isset($_FILES[$key]['error']) && $_FILES[$key]['error'] != 0)) {
            return false;
        }
        return true;
    }
public static function hasFile($key) {
        if (isset($_FILES[$key]) === false || (isset($_FILES[$key]['error']) && $_FILES[$key]['error'] != 0)) {
            return false;
        }
        return true;
    }
public static function hasFile ( $ key ) { if ( isset ( $ _FILES [ $ key ] ) === false || ( isset ( $ _FILES [ $ key ] [ 'error' ] ) && $ _FILES [ $ key ] [ 'error' ] != 0 ) ) { return false ; } return true ; }
Checks to see if request contains file

@return bool
Checks to see if request contains file