ok, befor I open a file, I want to make sure the path, and the file exist. How do I do that?