As per discussion, maybe add `&& doc.domains.length !== 0`