Guard against `Undefined index` errors

Validating checkboxes that were not checked will log a notice for an
Undefined index. Check to see if they are set in array.