Whether the trie contains the word.
word
bool has(String word) { return findPrefix(word, fromNode: _root)?.isEndOfWord ?? false; }