Checking if the file exists, prior to opening it.