I'd prefer re-write this code so:
```javascript
var annotatorWrapper = $('.annotator-wrapper').first,
    element = annotatorWrapper.find('div.' + annotation.id);

if (!element.length){
    element = annotatorWrapper.find('div.undefined');
}

element.remove(); 
```
what do you think?