code: function () {
              if (!this._cfg.options.length) {
                  return;
              }
              if (typeof this._cfg.value != 'undefined') {
                  for (var i = 0; i < this._cfg.options.length; i++) {
                      if (this._cfg.options[i].value === this._cfg.value) {
                          return;
                      }
                  }
  
                  this.$logError(this.WIDGET_OPTIONS_INVALID_VALUE);
  
              } else {
                  this.setProperty("value", this._cfg.options[0].value);
  
              }
          }
docs: Checks if the widget value is undefined (only when widget is initialised) If it is then sets the value as the
  first value in the select options If there is already a value set then checks the value set is a valid value
  contained in the select options If it isn't then logs an error that the widget value is different from any
  values in the widgets options.