title: How do I check if a cookie exists?
body: <p>What's a good way to check if a cookie exist?</p>
  
  <p><em>Conditions:</em></p>
  
  <p><strong>Cookie exists if</strong></p>
  
  <pre><code>cookie1=;cookie1=345534;
  //or
  cookie1=345534;cookie1=;
  //or
  cookie1=345534;
  </code></pre>
  
  <p><strong>Cookie doesn't exist if</strong></p>
  
  <pre><code>cookie=;
  //or
  &lt;blank&gt;
  </code></pre>