Accidental variable assignment in if condition (typo)

Accidental assignement at line 407