Html Div Element by Check If Div Is Empty Or Html Element Has Children Tags