def handle_untitled_module!(canvas_module)
      if canvas_module.title.nil? || canvas_module.title.empty?
        if canvas_module.module_items.any? &&
           canvas_module.module_items.first.is_a?(CanvasCC::Models::ModuleItem) &&
           canvas_module.module_items.first.content_type == 'ContextModuleSubHeader'
          canvas_module.title = canvas_module.module_items.shift.title
        else
          canvas_module.title = DEFAULT_NAME
        end
      end
    end
def handle_untitled_module!(canvas_module)
      if canvas_module.title.nil? || canvas_module.title.empty?
        if canvas_module.module_items.any? &&
           canvas_module.module_items.first.is_a?(CanvasCC::Models::ModuleItem) &&
           canvas_module.module_items.first.content_type == 'ContextModuleSubHeader'
          canvas_module.title = canvas_module.module_items.shift.title
        else
          canvas_module.title = DEFAULT_NAME
        end
      end
    end
If a module has no title, but its first item is a subheader, promote that to the title
 (per example package provided by a customer)