title: How would I test if a cookie is set using php and if it's not set do nothing
body: <p>I've tried</p>
  
  <pre><code> $cookie = $_COOKIE['cookie'];
  </code></pre>
  
  <p>if the cookie is not set it will give me an error </p>
  
  <pre><code>PHP ERROR
  Undefined index: cookie
  </code></pre>
  
  <p>How would I prevent it from giving me an empty variable> </p>