I’ve experienced this myself. I know I’m just one data point, but when I’m feeling grateful, I’m happier, and more likely to think of others. I’m more likely to empathize, to volunteer, to donate money to good causes. When I’m cranky or depressed, I revert to the selfish mind-set. “My life is miserable, so why should I bother helping anyone else?”