title: return throws error in if statement
body: <p>I have an <code>if</code> statement with <code>return</code>s in it that throw an error when executed.</p>
  
  <pre><code>var booleanStatement = true;
  
  if ( booleanStatement ){
      return true;
  } else {
      return false;
  }
  </code></pre>
  
  <p>This should return true but it instead throws an error. How can I get this statement to return true?</p>