code: function ensurePropertyIsAList(obj, prop) {
      obj[prop] = [].concat(
        typeof obj[prop] === 'undefined' ?
          [] : obj[prop]);
      return obj;
    }
docs: Helper function to wrap an object's property in a list if it's defined, or set it to an empty list if not.