I thought to replace whole thing with one line, but it can't be done, because el.textContent can be `""`, maybe use `if ("textContent" in el)`?