Fix: skip 'topics' condition if topics is empty