Check that the file exists before proceeding