Check if the file exists.