Ditto, I think you'll need something like `if (gitFolder.getChild('index') is File) return false`.