f (dataset.tags) {
                        // Handle tags as string or array
                        if (typeof dataset.tags === 'string') {
                            return dataset.tags.toLowerCase().includes(searchTerm);
                        } else if (Array.isArray(dataset.tags)) {
                            return dataset.tags.some(tag =>
                                String(tag).toLowerCase().includes(searchTerm));
                        }
                    }

                    return fals