add hasKey() methods