Need help implementing a "Select All" checkbox with form data

What does “preselected” mean exactly? I’d suggest modeling that instead of changing how you deal with params everywhere.