Unfortunately, JavaScript is not as nice as Python - jquery objects are always true-y. Instead, we should check
```
if (wrapperElement.length == 0) {
    return;
}
```