Add a method to determine whether there is a tmp file.