protected function isUploadedFile($package)
    {
        if (isset($package['name'], $package['tmp_name'], $package['type'], $package['size'])) {
            if (in_array($package['type'], ['application/zip', 'application/x-zip-compressed'])) {
                return true;
            }
        }

        return false;
    }
protected function isUploadedFile($package)
    {
        if (isset($package['name'], $package['tmp_name'], $package['type'], $package['size'])) {
            if (in_array($package['type'], ['application/zip', 'application/x-zip-compressed'])) {
                return true;
            }
        }

        return false;
    }
protected function isUploadedFile ( $ package ) { if ( isset ( $ package [ 'name' ] , $ package [ 'tmp_name' ] , $ package [ 'type' ] , $ package [ 'size' ] ) ) { if ( in_array ( $ package [ 'type' ] , [ 'application/zip' , 'application/x-zip-compressed' ] ) ) { return true ; } } return false ; }
Checks for valid uploaded file.

@param array $package

@return bool
Checks for valid uploaded file .