File existence test loop improved