Add a check if we got an invalid file.