Checking if a File Exists

Just a short question …

How would you check if a file on a server exists and if not, check XX Times l8er again til ya find it and then go ahead with the script …

any suggestions???

thanx in advance