I wonder if `'> *'` would be much faster because it wouldn't walk the whole tree?  Also, Nokogiri might have `empty()` or something.