title: Testing for cookie existence in Django
body: <p>Simple stuff here...</p>
  
  <p>if I try to reference a cookie in Django via</p>
  
  <pre><code>request.COOKIE["key"]
  </code></pre>
  
  <p>if the cookie doesn't exist that will throw a key error.</p>
  
  <p>For Django's <code>GET</code> and <code>POST</code>, since they are <code>QueryDict</code> objects, I can just do</p>
  
  <pre><code>if "foo" in request.GET
  </code></pre>
  
  <p>which is wonderfully sophisticated...</p>
  
  <p>what's the closest thing to this for cookies that isn't a Try/Catch block, if anything...</p>