Improve performance of duplicate checking by implementing isset() with named nodes - https://gist.github.com/betweenbrain/5730931