The else belongs on the same line as the previous closing brace.