Is this meant to be just one level? Perhaps add Javadoc to make that explicit, or change to a recursive check up the tree.