The cc and bcc might still be null or an empty string ("") when being passed, even though you assigned them as an array. Modify the constructor assignment to always ensure an array.
$this->cc = is_array($cc) ? $cc : [];
$this->bcc = is_array($bcc) ? $bcc : [];