In the jQuery accordion API, it says "If the accordion is collapsing, ui.newHeader and ui.newPanel will be empty jQuery objects."

How can I check if ui.newheader is an empty jQuery object? I've tried it like this: 

```
if ($(ui.newHeader) == null)
{
    ...
}

```

,like this:

```
if (ui.newHeader == null)
{
    ...
}

```

and this:

```
if ($(ui.newHeader) == "")
{
    ...
}

```

So basically, this is a question about jquery/javascript syntax :) Thanks