code: function(types, options){
  			if(!Array.isArray(types)) {
  				return options.inverse(this);
  			}
  			var typesWithDescriptions = [];
  			types.forEach(function( type ){
  				if(type.description){
  					typesWithDescriptions.push(type)
  				}
  			});
  			
  			if( !typesWithDescriptions.length ) {
  				// check the 1st one's options
  				if(types.length == 1 && types[0].options ) {
  					types[0].options.forEach(function(option){
  						typesWithDescriptions.push(option);
  					});
  				}
  				
  			}
  			
  			if(typesWithDescriptions.length){
  				return options.fn({types: typesWithDescriptions});
  			} else {
  				return options.inverse(this);
  			}
  		}
docs: Getting and transforming data and making it available to the template 
  @function documentjs.generators.html.defaultHelpers.getTypesWithDescriptions