if ( file_exits ( "bir_dosya.txt" ) ) 

print ("Dosya var!");
Dosya yoksa, program "Dosya var!" yazmadan yoluna devam edecektir.