Use getJsonFromRepo instead of hasFile.