code: function undefinedOrNullToEmptyArray(valueToConvert) {
      if (_.isUndefined(valueToConvert) || _.isNull(valueToConvert)) {
        valueToConvert = [];
      }
      return valueToConvert;
    }
docs: Converts any undefined or null values to an empty array.  All other values are left unchanged.
  @param valueToConvert the value to check for null or undefined.
  @return {Array|*} either the original value or [] if the valueToConvert is null or undefined.