Returning a Boolean from variable declaration
<p>I would like to create a conditional statement to serve as a exception in styles.  My logic is to find location of current navigation, if navigation has a logo class <code>{expression}</code></p>

<p><strong>Script</strong>   </p>

<pre><code> $('li.navCenter').on('click', function () {
   var findActiveLi = $('.footerUl').find(".currentFooterNav");//fine location of current navitation
   var logoTarget = $(findActiveLi &gt; ".logo"); // finds if  currentnavli has logo class
    if ($(logoTarget) == true) {
        $("ul.logoUl &gt; li").removeClass('orange blue green pink').addClass('grayLogo').css({
            'background-color': ''
        });
    }
});
</code></pre>

<p><strong>HTML</strong> (<em>.currentFooterNav will move around</em>)</p>

<pre><code>    &lt;footer id="footer"&gt;
  &lt;nav&gt;
    &lt;ul class="footerUl"&gt;
      &lt;li id="worksFooterNavi" class="navi"&gt;&lt;a href="#"&gt;works&lt;/a&gt;&lt;/li&gt;
      &lt;li id="aboutFooterNavi" class="navi"&gt;&lt;a href="#"&gt;about&lt;/a&gt;&lt;/li&gt;
      &lt;li class="homeFooterNavi navi currentFooterNav currentAll"&gt;&lt;a href="#" title="logo"&gt;
        &lt;div class="logo activeFooter"&gt;
          &lt;ul class="logoUl"&gt;
            &lt;li class="orange"&gt;&lt;/li&gt;
            &lt;li class="blue"&gt;&lt;/li&gt;
            &lt;li class="green"&gt;&lt;/li&gt;
            &lt;li class="pink"&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
        &lt;/a&gt; ​
      &lt;/li&gt;
      &lt;li id="contactFooterNavi"  class="navi"&gt;&lt;a href="#"&gt;contact&lt;/a&gt;&lt;/li&gt;
      &lt;li id="followFooterNavi"  class="navi"&gt;&lt;a href="#"&gt;follow&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/nav&gt;
&lt;/footer&gt;
</code></pre>

<p>how can i make this line return a boolean == true; when necessary?<br>
<code>var logoTarget = $(findActiveLi &gt; ".logo");</code> </p>
