Please fix coding styles here, else on same line and don't omit the braces:

    } else {
    }