title: Too many try/catch blocks. Is this proper?
body: <p>I've got an Input helper class that throws an exception if the source array index is undefined.</p>
  
  <p>So if I had something like:</p>
  
  <pre><code>$input = new Input($_GET, $_POST);
  
  $input-&gt;get("var1");
  $input-&gt;get("var2");
  $input-&gt;get("var3");
  $input-&gt;get("var4");
  </code></pre>
  
  <p>It would now be:</p>
  
  <pre><code>$input = new Input($_GET, $_POST);
  
  try {
      $input-&gt;get("var1");
  } catch(Exception $e) {
      //handle it
  }
  
  try {
      $input-&gt;get("var2");
  } catch(Exception $e) {
      //handle it
  }
  
  try {
      $input-&gt;get("var3");
  } catch(Exception $e) {
      //handle it
  }
  
  try {
      $input-&gt;get("var4");
  } catch(Exception $e) {
      //handle it
  }
  </code></pre>
  
  <p>I have no idea how I could use less try catch blocks without having to stop execution of the further code if I was to put everything in 1 try catch block.</p>
  
  <p><strong>Is this the correct way of using the try catch function?</strong></p>