code: function areValidTemplateItems (template) {
    return template.every(item =>
      item != null &&
      typeof item === 'object' &&
      (item.hasOwnProperty('label') ||
       item.hasOwnProperty('role') ||
       item.type === 'separator'))
  }
docs: /* Helper Functions validate the template against having the wrong attribute