nltk.Index.has_key

Index.has_key(k) → True if D has a key k, else False