check if the file exists without exception