Adding if function exists check for social