If there's no `refPath`, then you're not doing anything with file info list, so you can check for it before starting `FileIndexManager.getFileInfoList("all")` asynchronous operation.