Handle empty sets as well