nit: space between `}` and `else`