index: simplify `selects()` logic