I think that check was inherited... are you suggesting that this isn't required though given the `resourceNameAt` checking for directories...?