title: How to give isset on get_cat_id ($up_options->category1)
body: <p>I have a code like this (call a category defined from theme panel):</p>
  
  <pre><code> &lt;?php query_posts ('ignore_sticky_posts=1&amp;showposts=1&amp;cat='.get_cat_id
   ($up_options-&gt;category1)
   ); 
  </code></pre>
  
  <p>Everything work fine but need to add isset in case the category did not define.</p>
  
  <p>I give isset like this:</p>
  
  <pre><code> &lt;?php query_posts ('ignore_sticky_posts=1&amp;showposts=1&amp;cat='.get_cat_id(
   (isset($up_options-&gt;category1) &amp;&amp; $up_options-&gt;category1))
   );
  </code></pre>
  
  <p>But did not work.
  Can anyone help me?  I'm pretty new to PHP.</p>
  
  <p>Thank for any kind of helps.</p>
  
  <p>Here the full code:</p>
  
  <pre><code> &lt;div class="wrapper"&gt;
      &lt;?php query_posts ('ignore_sticky_posts=1&amp;showposts=1&amp;cat='.get_cat_id($up_options-&gt;category1));    
       if (have_posts()) :
           while (have_posts()) : the_post();?&gt;
      &lt;div class="inside"&gt;
          &lt;div class="title"&gt;
              &lt;h5&gt; &lt;a href="&lt;?php the_permalink() ?&gt;" title="&lt;?php  the_title(); ?&gt;"&gt;&lt;?php echo substr(the_title('', '', false), 0, 75); ?&gt;...&lt;/a&gt; &lt;/h5&gt;
          &lt;/div&gt;
      &lt;/div&gt;
   &lt;?php endwhile; endif; wp_reset_query();?&gt;
   &lt;/div&gt;
  </code></pre>