I have an SVG file like this
<svg class="icon" viewBox="0 0 16 16"> <use href="assets/icons.svg#my-fancy-icon"></use> </svg>
Using JavaScript, how do I find out if the element pointed to by the <use> element actually exists?