title: jQuery - What am i doing wrong. if - else statements. wrap() if element is parent
body: <p>Basic idea of my if else statements is this:</p>
  
  <ul>
  <li><strong>If</strong> <code>.wrap</code> is parent element: do something</li>
  <li><strong>Else:</strong> do something else</li>
  </ul>
  
  <p>This might not make much sense but if you look at the code here:
  <a href="http://jsfiddle.net/C6NQM/" rel="nofollow">http://jsfiddle.net/C6NQM/</a> ..it might</p>
  
  <pre><code>if( $('.wrap:parent'); ) 
      { $('.wrap').children().wrap('&lt;div class="new" /&gt;'); }
  else { $('.wrap').wrap('&lt;div class="new" /&gt;'); }
  </code></pre>
  
  <p>Things work separately if i remove if and else, so i came to the conclusion that there's something wrong with my if condition.</p>
  
  <p>Any ideas about what's wrong here?</p>