title: Check if boolean is true or false
body: <p>I have this little part of code:</p>
  
  <pre><code>$company = array('relation' =&gt; $_SESSION['username']);
  $companyresponse = $wcfclient-&gt;GetCompany($company);
      foreach ($companyresponse-&gt;GetCompanyResult as $key =&gt; $value){
      echo $value[0]; //This is the name of the company
  
      if ($value[1] == TRUE){
         echo "Company blocked";
      }
      elseif($value[1] == FALSE){
         echo "Company NOT blocked";
      }
      echo $value[1]; //This gives me the correct result, in this case: FALSE
  </code></pre>
  
  <p>The result of $value[1] is FALSE, though when it passed my if-statement it returns: "Company blocked" , so $value[1] is TRUE while it needs to be FALSE.</p>
  
  <p>Can someone tell me why it doesn't return the correct value?</p>
  
  <p>I also tried it with:</p>
  
  <pre><code>if ($value[1] == 1){
     echo "Company blocked";
  }
  else{
     echo "Company NOT blocked";
  }
  </code></pre>
  
  <p>This gives me the value FALSE, but somehow the if-statement changes it into TRUE.</p>
  
  <pre><code>var_dump($value[1]) 
  </code></pre>
  
  <p>When I try a company which is blocked normally it gives me the correct result of:</p>
  
  <p><code>string(4) "True" Company blockedTrue</code></p>