結果 : react check if component is empty