refactor the controller to check for files before returning 202
Merge pull request #13 from Esri/202-file-export

refactor the controller to check for files before returning 202