Fix `if` statement syntax