jQuery if an element has two parent uls
<p>How would I detect if an element had two parent uls so for example:</p>

<pre><code>&lt;ul&gt;
   &lt;li&gt;Link
      &lt;ul&gt;
        &lt;li&gt;Link
            &lt;ul&gt;
                &lt;li class="this"&gt;Link&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
   &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>I've tried:</p>

<pre><code>if ($('.this').parent('ul').parent('ul') == true)
</code></pre>

<p>but it doesn't seem to work... Can anyone help? Thanks</p>
