結果 : check if object has any properties javascript