Email Module hide based on custom objects
In email template, module has been created and want to hide the email module when custom objects list is empty or not exists. For example- lead A is linked with custom objects list product so here in email I want to show email module but for lead B is not linked custom objects list product so here I want to hide the email module for lead B only. Can this be done using velocity script?
Email Module name is- recommend item
Custom objects is - Product