How to remove component that is empty on dynamic page?

Thanks for your suggestion. It’s been a while since I worked on this but I believe my intention was to (delete element) not have anything at all when the url is empty but include and display element when a url is. So for example if an artist doesn’t have a spotify or soundcloud account to link to, then that section is empty on the page versus an artist that does have a spotify playlist, then the link is added in the database so the html element can display on the page. That way I can save on load times for artist that don’t have urls.