Added helper for checking empty result sets.