selection: implement for nil as well
test: add a test for empty where result