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