Checking for key exists.