Test if we have a nextSibling before determining a tagName. This is so if we have a dir with only subdirs (ie, no files) and the last subdir is empty, there will be no UL list (which we're looking to maybe remove).