Modify addCondition to check all conditions in a list