We should probably just early return if the element doesn't exist there:

```js
if (!elem) return;
If (elem.innerHTML) ...
```