Need an empty line after the closing `}`. Similarly after the next `if` block also.