Add hasMatchInArray.