Check cache file exists before trying to delete it.