Is philosophy helpful when tragedy strikes?

Recently, a friend of a close friend of mine committed suicide. His partner is, understandably, distraught. My friend called me up asking if I had written anything philosophical that could be of consolation. I replied that yes, I had, but it would only help if the person in question had adopted a philosophical outlook on life. She had not.