Check if the output file already exists