Check if key exists