Add has_member function to test if a tag is present among subnodes.