The intent is to check the existence of the file, changed the method used for that.