結果 : python check if key exists and not empty