check if key exists