Using array search in case the filter value is an object or array.