Swap if/else in validateSame/Different