cacheCollection.js
function isEmpty (val) {
    return (val === undefined || val === false || val === null ||
      (typeof val === 'object' && Object.keys(val).length === 0));
  }
function isEmpty (val) {
    return (val === undefined || val === false || val === null ||
      (typeof val === 'object' && Object.keys(val).length === 0));
  }
function isEmpty ( val ) { return ( val === undefined || val === false || val === null || ( typeof val === 'object' && Object . keys ( val ) . length === 0 ) ) ; }
Checks if a value is "empty"
@param {object | string | null | undefined} val
@return {boolean}
Checks if a value is empty