I've followed the FAQ for sending to multiple emails based upon a dropdown element, but it's not working. It only sends it to the first email in the listing that has more than one. What could I be missing. I've attached an image of what I've do

Array ( [option] => com_chronoforms5 [chronoform] => Test02 [event] => submit [first] => John [last] => Doe [email] => john.doe@supermail.com [recipients] => em2 [reelSub] => [message] => Testing email form. [Apply] => Apply [emails_to_use] => [ip_address] => 00.71.0.66 )
Array ( )
Array ( )
Array ( [0] => Array ( [Email] => Array ( [0] => An email with the details below was sent successfully: [1] => To:, larry@supermail.com [2] => Subject:Test [3] => From name:iA [4] => From email:do-not-reply@supermail.com [5] => CC: [6] => BCC: [7] => Reply name:John [8] => Reply email:john.doe@supermail.com [9] => Attachments: [10] => Array ( ) [11] => Body: <table> <tr><td><strong>Applicants Name</strong></td></tr> <tr><td>John Doe</td></tr> <tr><td><strong>Applicants e-mail address</strong></td></tr> <tr><td>john.doe@supermail.com</td></tr> <tr><td><strong>Applicants Location</strong></td></tr> <tr><td></td></tr> <tr><td><strong>Applicants Message</strong></td></tr> <tr><td>Testing email form.</td></tr> <tr><td><strong>How Applicant heard about iA</strong></td></tr> <tr><td></td></tr> <tr><td></td></tr> <tr><td><strong>Placement Level</strong></td></tr> <tr><td></td></tr> <tr><td><strong>Applicants Link Submission</strong></td></tr> <tr><td><a href=></td></tr> </table><br /><br />IP: 00.71.0.66 ) ) )
<?php
// set a default recipient
$recipients = array( 'em1' );
if ( isset($form->data['recipients']) && $form->data['recipients'] ) {
$recipients = $form->data['recipients'];
}
$emails = array (
'em1' => array('test01@email.com'),
'em2' => array('test02@email.com', 'test03@email.com'),
'em3' => array('test02@email.com', 'test03@email.com')
);
$emails_to_use = array();
foreach ( $recipients as $v ) {
$emails_to_use = array_merge($emails[$v], $emails_to_use);
}
$emails_to_use = implode(',', $emails_to_use);
$form->data['emails_to_use'] = $emails_to_use;
?>
$emails = array (Bob
'em1' => 'test01@email.com',
'em2' => 'test02@email.com,test03@email.com',
'em3' => 'test04@email.com'
);