Strengthen _sanitizeCondition logic.