account for empty selection in hide toggle handler