File.exists should do it for you