title: true or false as result of php ternary operator
body: <p>I'm working with legacy PHP code and I'm seeing a lot of instances where the programmer has done this:</p>
  
  <pre><code>$foo = ($bar === 'baz') ? true : false;
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>$foo = ($bar === 'baz');
  </code></pre>
  
  <p>Is there ever a case of a conditional expression where the first example wouldn't function the same as the second? Is there any common reason for doing the first (readability, defensive coding, etc.)? </p>