My mistake, I need the other direction, i.e.
``
if ( ZU.xpath(nextLine, './/a[@href]').length == 0 ) {
``