title: Check if Page.RouteData.Values has a value
body: <p>I am getting an error when running</p>
  
  <pre><code>string quote = Page.RouteData.Values["quote"].ToString() ?? string.Empty;
  </code></pre>
  
  <p><em>Error: Object reference not set to an instance of an object.</em></p>
  
  <p>I understand that ToString is causing the error since the Page.RouteData.Values["quote"] is empty/null.</p>
  
  <p>How do I check to see if the <strong>Page.RouteData.Values</strong>["quote"] has a value before we do the ToString?</p>