When facing challenges, a realistic mindset seems to be better than a purely optimistic attitude