Help!!

Ok so recently I ran into my ex at the bank and that same day later an old friend of mine had told me that my ex’s recent girlfriend had passed that morning. Now I never actually talked to him when I seen him I just scurried away aha. But now for the past week or so I’ve been thinking about reaching out and letting him know I’m there for him if he needs to talk or just needs a friend, we haven’t spoken for almost a year now so I’m wondering if anyone would suggest that I do or don’t reach out im just deeply worried about how he’s doing.