def find_array_children(toc, title)
      toc.each do |item|
        next unless item.is_a?(Hash)
        item.each_pair do |key, values|
          if key == title
            children = values.flatten
            return children
          end
        end
      end
      # Found no children
      Array.new
    end
def find_array_children(toc, title)
      toc.each do |item|
        next unless item.is_a?(Hash)
        item.each_pair do |key, values|
          if key == title
            children = values.flatten
            return children
          end
        end
      end
      # Found no children
      Array.new
    end
Given a category file that's an array, this method finds
 the children of an item, probably a map topic

 toc - the array containing the table of contents
 title - the text title to return the children of

 Returns a flattened array of all descendants which could be empty.