Does anyone know of a way to filter out duplicate values in an array? Any help would be appreciated