hasFile method
True when the key holds an uploaded file, or a list of files.
Implementation
bool hasFile(String key) {
dynamic val = _valueOf(key);
if (val is RequestFile) return true;
return val is List && val.isNotEmpty && val.every(_isFile);
}