If you use an array for the checkboxes, you should add a value option as identifier for the single checkboxes, because then the returned array changes from
Array ( [0] => on, [1] => on) to Array ( [0] => value1, [1] => value5 ), which let you identify the checked checkboxes.