check if a key is set