replace && with and for arrays