code: boolean isIntermediaryPath(final JsonPointer jp) {
          List<String> jpRefTokens = jp.tokens();
          int jpSize = jpRefTokens.size();
          if (jpSize == 1) {
              return false;
          }
  
          Node node = root;
          for (int i = 1; i < jpSize; i++) {
              Node childMatch = node.match(jpRefTokens.get(i));
              if (childMatch == null) {
                  return false;
              } else {
                  node = childMatch;
              }
          }
  
          return node.children != null;
      }
docs: Checks if the given {@link JsonPointer} represents an intermediary path in the tree.
  
  @param jp the pointer to check.
  @return true if its intermediary, false otherwise (like if terminal).