Empirical investigation of the relationship between bilingualism and social flexibility