function ensureArray(singleOrArray) {
  if (!singleOrArray) return []
  if (isArray(singleOrArray)) return singleOrArray
  return [singleOrArray]
}
Ensure value returned is Array
@param {*} singleOrArray 
@returns [*]