C #: Como garantir que exista uma variável de configurações antes de tentar usá-la em outro assembly?

Eu tenho o seguinte:

using CommonSettings = MyProject.Commons.Settings;

public class Foo
{
    public static void DoSomething(string str)
    {
        //How do I make sure that the setting exists first?
        object setting = CommonSettings.Default[str];

        DoSomethingElse(setting);
    }
}

questionAnswers(5)

yourAnswerToTheQuestion