Undefined index when all checkboxes were unchecked