We should use the more common `!selected` here instead.  If `getSelectedItem()` ever explicitly returns null, this check won't work.