// BUG: True and false branches of if-statement swapped