title: $_GET and isset()
body: <p>I am getting tried of <code>if isset($_GET['whatever'])...</code> before the rest of my if statement. E_NOTICE errors are way to handy to turn off and for <code>$_POST</code> variables I <strong>have a solution in my init script</strong>..</p>
  
  <pre><code>$POST = (is_array( $_POST ) &amp;&amp; count( $_POST ) &gt; 0);
  </code></pre>
  
  <p>I find this helps self posting scripts look clean.</p>
  
  <pre><code>if ($POST) {
      // now do something with $_POST...
  }
  </code></pre>
  
  <p>I'm not sure how to dynamically do this if you have no idea what the key is? Can anyone help find a similar solution for <code>$_GET</code> variables?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I simply want <code>if ($_GET['whatever'] == "whatever");</code> to return false if it's not set and no <code>E_NOTICE</code> errors.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Sorry if I'm unclear I'm looking for a solution for <code>$_GET</code> not <code>$_POST</code>--I only am using <code>$_POST</code> as an example of what I hope to achieve.</p>