結果 : check if is defined javascript