Helps implementing "Select all" / "Deselect all" functionality