if (!allEmailsValue->IsArray()) { continue; }  Maybe log a warning as well?