class Nokogiri::XML::NodeSet

def pop

the set is empty
Removes the last element from set and returns it, or +nil+ if
##
def pop
  return nil if length == 0
  delete(last)
end