Maybe just `document.contains(this.obj)` ?