Fix Request::hasFile with an array of files
Import SplFileInfo
Add a setJsonOptions method to JsonResponse to allow changing options after creation
Fix method JSON setOptions method.
Merge pull request #5250 from vetruvet/hasfile-array-fix

Fix Request::hasFile with an array of files
Cleaning up some code.