docs: function hasValidLength(inputArg) {
          var valid = false,
              type = typeof inputArg,
              length;
  
          if (type !== 'undefined' &&
                  inputArg !== null &&
                  type !== 'boolean' &&
                  type !== 'string' &&
                  type !== 'number' &&
                  pHasOwn.call(inputArg, 'length')) {
  
              length = inputArg.length;
              if (isInteger(length) && length >= 0) {
                  valid = true;
              }
          }
  
          return valid;
      }