Correct syntax error from bad placement of `else`