docs: def traverse(data, key, delim=defaults.DEFAULT_DELIM):
      '''
      Traverse a dict or list using a slash delimiter target string.
      The target 'foo/bar/0' will return data['foo']['bar'][0] if
      this value exists, otherwise will return empty dict.
      Return None when not found.
      This can be used to verify if a certain key exists under
      dictionary hierarchy.
      '''
      for each in key.split(delim):
          if isinstance(data, list):
              if isinstance(each, six.string_type):
                  embed_match = False
                  # Index was not numeric, lets look at any embedded dicts
                  for embedded in (x for x in data if isinstance(x, dict)):
                      try:
                          data = embedded[each]
                          embed_match = True
                          break
                      except KeyError:
                          pass
                  if not embed_match:
                      # No embedded dicts matched
                      return None
              else:
                  try:
                      data = data[int(each)]
                  except IndexError:
                      return None
          else:
              try:
                  data = data[each]
              except (KeyError, TypeError):
                  return None
      return data