Refactored sum(condition) > 0 to any(condition).