function isCircularReference(traverseContext, contentFromTrace) {
  return traverseContext.parents.find((parent) => { return parent.node === contentFromTrace; }) !== undefined;
}
Verifies if a node has same content as one of the parents so it is a circular ref
@param {function} traverseContext - The context of the traverse function
@param {object} contentFromTrace -  The resolved content of the node to deref
@returns {boolean} whether is circular reference or not.