how to check if #children has values

Hi, I try to get children values first if exist, if not to get other content from template
I tried this but I get printed both, the #children values and the other values.

#set($childresults = $rx.asmhelper.assembleChildren($sys.assemblyItem,$sys.item,“childname”,“templatename”))
#if($childresults.size() > 0)
#children(“childname” “templatename” “” “” “” “”)
#end

#othercontent

Thank you