結果 : how to check if element is empty in javascript