A fascinating side effect of going through unpleasant experiences is that we quickly find out who our friends are.