else should be on new line:

    }
    else {