private static function toArray($value) { return $value instanceof Nette\Http\FileUpload ? [$value] : (array) $value; }