domain_ids.present? not needed...we already checked domain_ids.empty? before entering this block