added doc for hasKey method.