docs: function updateProjectPlistForLaunchStoryboard(platformConfig, infoPlist) {
      var UI_LAUNCH_STORYBOARD_NAME = 'UILaunchStoryboardName';
      var CDV_LAUNCH_STORYBOARD_NAME = 'CDVLaunchScreen';
  
      var splashScreens = platformConfig.getSplashScreens('ios');
      var contentsJSON = getLaunchStoryboardContentsJSON(splashScreens, '');  // note: we don't need a file path here; we're just counting
      var currentLaunchStoryboard = infoPlist[UI_LAUNCH_STORYBOARD_NAME];
  
      events.emit('verbose', 'Current launch storyboard ' + currentLaunchStoryboard);
  
  
      /* do we have any launch images do we have for our launch storyboard?
       * Again, for old Node versions, the below code is equivalent to this:
       *     var hasLaunchStoryboardImages = !!contentsJSON.images.find(function (item) {
       *        return item.filename !== undefined;
       *     });
       */
      var hasLaunchStoryboardImages = !!contentsJSON.images.reduce(function (p, c) {
          return (c.filename !== undefined) ? c : p;
      }, undefined);
  
      if (hasLaunchStoryboardImages && !currentLaunchStoryboard) {
          // only change the launch storyboard if we have images to use AND the current value is blank
          // if it's not blank, we've either done this before, or the user has their own launch storyboard
          events.emit('verbose', 'Changing project to use our launch storyboard');
          infoPlist[UI_LAUNCH_STORYBOARD_NAME] = CDV_LAUNCH_STORYBOARD_NAME;
          return;
      }
  
      if (!hasLaunchStoryboardImages && currentLaunchStoryboard === CDV_LAUNCH_STORYBOARD_NAME) {
          // only revert to using the launch images if we have don't have any images for the launch storyboard
          // but only clear it if current launch storyboard is our storyboard; the user might be using their
          // own storyboard instead.
          events.emit('verbose', 'Changing project to use launch images');
          infoPlist[UI_LAUNCH_STORYBOARD_NAME] = undefined;
          return;
      }
      events.emit('verbose', 'Not changing launch storyboard setting.');
  }