結果 : javascript ternary operator check for undefined