def find_array_parents(toc, title)
      parents = ''
      toc.each do |item|
        if item.is_a?(Hash)
          parents = find_hash_parents(item, title)
          break unless parents.empty?
        end
      end
      parents
    end
def find_array_parents(toc, title)
      parents = ''
      toc.each do |item|
        if item.is_a?(Hash)
          parents = find_hash_parents(item, title)
          break unless parents.empty?
        end
      end
      parents
    end
Given a category file that's an array, this method finds
 the parent of an item