Readd trie_exists method.