null check the key