Empty $integrations array prevents defining $links

Empty $integrations array prevents defining $links which causes a notice for undefined var and warning in `implode()`