Reorder laex if...else conditions