結果 : javascript check if variable is defined and not empty