Added isArray check to uniqueMessage filter