code: function (component, savedComponents) {
  			for (var index = 0; index < savedComponents.length; index += 1) {
  				if (savedComponents[index].text == component.text && savedComponents[index].selected) {
  					return true;
  				}
  			}
  			return false;
  		}
docs: Checks if given execution scope component is selected comparing against an array of settings
  @param {Object} component The current component object to be checked
  @param {Array} savedComponents The local storage settings for the checked execution scope components
  @returns {boolean} If the component is checked or not