function added(path, referencesInNode) {
  return referencesInNode.find((reference) => { return reference.path === path; }) !== undefined;
}
verifies if the path has been added to the result
@param {string} path - path to find
@param {Array} referencesInNode - Array with the already added paths
@returns {boolean} - wheter a node with the same path has been added