title: Why is (If false return "true") ... returning true?
body: <p>Inside the begining of a function I have this:</p>
  
  <pre><code>if(false);
  {
      return 'TRUE';
  }
  </code></pre>
  
  <p>it is returning "TRUE"! Obviously my real use was checking a more useful expression and returning something else. I just changed it to this to elaborate my point.</p>
  
  <p>Why is this happening? Can you not put a return inside an if statement? I do this all the time in other languages.</p>
  
  <p>For example</p>
  
  <p>instead of this:</p>
  
  <pre><code>function () {
  if(something)
  {
  //process stuff
  }
  }
  </code></pre>
  
  <p>which requires wraping everthing inside the function inside an if.</p>
  
  <p>I prefer to do this:</p>
  
  <pre><code>function() {
  if(!something)
  return;
  //process stuff
  }
  </code></pre>
  
  <p>Is this not OK in PHP... is there a work around?</p>