set optimizations regarding empty sets