title: php if foreach statement works, but else message not displaying
body: <p>I'm getting an array of data from my model, and am using a php foreach statement to display it in a view. I'm adding another layer of logic to show only certain bookmark_ids.</p>
  
  <p>The data is displaying fine; but for some reason the "else" message (tied to the first if clause) isn't showing if no data is returned. I need to figure out how to get that message to display.</p>
  
  <pre><code>&lt;?php 
  
       if ($bookmark): 
       foreach($bookmark as $b): ?&gt;               
  
       &lt;?php if ($b-&gt;bookmark_id != 0) { ?&gt;               
  
       &lt;li&gt;&lt;?php echo $bk-&gt;user_id; ?&gt; &lt;?php echo $bk-&gt;bookmark_name; ?&gt;&lt;/li&gt;
  
       &lt;?php } ?&gt;
  
  
       &lt;?php
        endforeach;
          else:
            print "Your bookmark list is empty.";
      endif;
  
  ?&gt;
  </code></pre>