Changed checks for arrays on emails