C# use session value if not null shortcut
<p>Is there was a shorter way in C# of writing the following code:</p>

<pre><code>var token = Session["token"];
if(token != null)
{
    if((String)token != "")
    {
        var a = (String)token;
    }
}
</code></pre>

<p>Is there an equivalent of <code>string.IsNullOrEmpty(Object.ToString())</code> for objects that potentially are null without causing an exception?</p>

<p>EDIT: Showing actual code, swapping out variable name for "token" and "a". var a is actually a property reference, but for the sake of helpfulness in future situations, left as var a.</p>
