index: implement a more robust `hasFile()` check
index: add JSDoc comment
index: don't bother doing a debug() call for the metaAPI calls