Social Links: Add function exists check.

Props @lancewillett @binarymoon

See: #906

Should deploy with a 3.1.1 if it ships.