No need to store hasFile.