ensures that social media links are provided before displaying the icon