Basic idea of my if else statements is this:

* **If** `.wrap` is parent element: do something
* **Else:** do something else

This might not make much sense but if you look at the code here:
<http://jsfiddle.net/C6NQM/> ..it might

```
if( $('.wrap:parent'); ) 
    { $('.wrap').children().wrap('<div class="new" />'); }
else { $('.wrap').wrap('<div class="new" />'); }

```

Things work separately if i remove if and else, so i came to the conclusion that there's something wrong with my if condition.

Any ideas about what's wrong here?