def METHOD_NAME(request):
    ccontroller = request.contest.controller
    rcontroller = ccontroller.ranking_controller()
    return ccontroller.can_see_ranking(request) and bool(
        rcontroller.available_rankings(request)
    )