nit style guide says to put the `else {` on a new line