function hasDefinedValue(attrs) {
    var value = attrs.value;
    var ngValue = attrs.ngValue;

    return value || ngValue;
  }
@param {Object} attrs list of attributes from the compile function
@return {string|undefined|null} if defined and non-empty, return the value of the option's
 value attribute, otherwise return the value of the option's ng-value attribute.