don't mix inline and bracket style `if...else`