Handle checkboxes without values correctly