結果 : check if object has properties javascript