Solution: if (typeof td_mobile_menu == 'function') { td_mobile_menu(); }
if (typeof td_mobile_menu == 'function') { td_mobile_menu(); }