function _checkKeyLength(object, maxLength) {
  const keys = Object.keys(object)
  let badKey = false
  const len = keys.length
  let key = '' // init to string because gotta go fast
  for (let i = 0; i < len; i++) {
    key = keys[i]
    if (key.length > maxLength) {
      logger.warn(
        'recordCustomEvent requires keys to be less than 256 chars got %s (%s)',
        key,
        key.length
      )
      badKey = true
    }
  }
  return badKey
}
Validates that all keys in a given object have values that are less than or equal to a given length
Assumes all values have .length property (string/array)

@private
@param {object} object The object to validate
@param {number} maxLength The max allowed length
@returns {boolean} Whether or not the object passes validation