Create a helper function for emitting checkboxes.