Added a check to see if cache file exists before attempted delete