I believe this can be written simply as `$recipients = (array) $to;`