結果 : check if variable has value javascript