Existe uma maneira de tornar opcional uma seção @ com o asp.net mvc Razor ViewEngine?

Eu tenho um Page.cshtml semelhante ao seguinte (que não funciona):

@{
    Layout = "../Shared/Layouts/_Layout.cshtml";
    var mycollection = (ViewBag.TheCollection as IQueryable<MyCollectionType>);
}

<h2>@ViewBag.Title</h2>

content here

@if (mycollection != null && mycollection.Count() > 0)
{    
    @section ContentRight
    {    
        <h2>
            Stuff
        </h2>
        <ul class="stuff">
            @foreach (MyCollectionType item in mycollection )
            {
                <li class="stuff-item">@item.Name</li>
            }
        </ul>
    }
}

Como eu disse, isso não funciona. Quero não definir a seção se não houver nada na coleção. Existe alguma maneira de ter algo parecido com este trabalho? Caso contrário, quais são minhas outras opções? Sou muito novo neste Razor ViewEngine.

Editar

No meu layout eu tenho:

@if(IsSectionDefined("ContentRight")) 
{
    <div class="right">
        RenderSection("ContentRight")
    </div>
}

o que eu não quero é o div para saída quando a seção está vazia.

questionAnswers(5)

yourAnswerToTheQuestion