handle empty query sets in a nicer way