original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Checks for valid uploaded file.
  
  @param array $package
  
  @return bool
docstring_tokens: Checks for valid uploaded file .