style nit: put `else` on the previous line next to the closing brace.