what would be the use case of $rootPath false or null? i think it always must exist - you can leave it at `/` to not limit what can be retrieved. i would drop this check here and rather check for non-empty string in setRootPath instead