title: if else statement is not working on codeigniter
body: <p>i have few if else statement on returning just true or false, and every statement is not working properly. i have tried many ways but don't know the problem.it will be very helpful if anyone fix this.</p>
  
  <p>here is my code for model</p>
  
  <pre><code>function exists($email){
      $this-&gt;db-&gt;where('email',$email);
      $query=$this-&gt;db-&gt;get('member_info');
      echo "model is called"; // after execution this text is shown but not the others
      if ($query-&gt;num_rows == 1) {           
          return true;        
          echo "i got one";
      }else{
          return false;
          echo "i got nothing";
      }       
  }
  </code></pre>
  
  <p>and here is my controller</p>
  
  <pre><code>function is_exists($email){
      echo "this is loaded";  //this line works properly
      if($this-&gt;validation_model-&gt;exists($email)){
          return false;
          echo "true"; //this doesn't 
      }else{
          return true;
          echo "false"; // this doesn't
      }
  }
  </code></pre>