In /plugins/system/advencedmodule/src/Helper.php line 373 your forget to test $module->extra->hideempty != 1
So the html code wich could be in the module config field "if_empty_html" is diplayed
(while in the module config form when your select "hide if empty" the field "if_empty_html" is not show)