title: Php variable not saving its value boolean
body: <p>I am struggling here with a php statement. I can't seem to store a <code>true</code> variable which I want to reference later on in php.</p>
  
  <pre><code>&lt;?php if ( $the_query-&gt;have_posts() ) : while ( $the_query-&gt;have_posts() ) : $the_query-&gt;the_post(); ?&gt;
   &lt;?php $isFound=true;?&gt; 
  &lt;?php endwhile; else: ?&gt;
  &lt;?php $isFound=false;?&gt; 
  &lt;p&gt;&lt;?php 
  echo $isFound;
  
  _e('Sorry, no posts matched your criteria.'); ?&gt;&lt;/p&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Can someone tell me what I am doing wrong? When I try to echo it, it's not showing a value even though the <code>sorry no posts matched</code> is displayed fine?</p>