both 0 and null are false, should this just be `if index`?

In general, do we want a central `first/last_selected` method, or is that overkill?