`loadXML()` will raise an error if no XML is provided, which is why we originally checked to ensure we had _something_ to pass to it first. I think this logic needs to be reinstated as it was.