I've been to 4 funerals this year. Yes 4 funerals and a wedding, the inversion of 4 weddings and a funeral.
But I think that going to a funeral really does help you to think. I agree with what the Bible says that it is better to go to a house of mourning than to a house of feasting.
It tells you that there are serious matters in this world. Things more important than money, having fun.
It's about your life, and how you want to live your life in this world.
It's about your relationships, and how you want to touch other people in this world.
It's about God, and how you glorified in in this life while you were here.
It's about hope and faith, about where you are sure of going to at the end of this life.
Almost all your achievements to naught in the light of these things.