should the `sets.length == 1` case be optimized as well?