There's no need to do this instanceof check actually.  We should just replace this entire if else block with:

```
$el = $(el);
```