Check if the JSON file exists before trying to delete it