code: function isValidPath(path) {
    if (path === null || path === undefined) return false;
    return typeof path === 'string' && path.length > 0;
  }
docs: Determine whether a path argument is valid
  @param path
  @return {boolean}