Spacing with brackets need to be fixed. `else` goes next to the bracket, and the closing bracket of the if must be aligned.