Updated social links to check for undefined