check file for existence