In the code below I want to be able to detect whether there is a url set from the html element .img. Based on the example, no url has been set and therefore the
.img