結果 : if element is not null javascript