Can you not just try to open it and see if you get an error?
The only tricky part is making sure you don't allow a race condition (e.g. if the file is not there, then opening it with "+>"; but having another process create it inbetween the if and then parts).