had it not been for
Had it not been for means you're only not completely broken because of one thing. Everything else is chaos.
Had it not been for my dog keeping me company, I'd have gone insane in that hotel room.
Had it not been for my friend showing up, I'd have been stuck in that boring party forever.
Had it not been for the ice cream truck stopping by, I'd have been sad the whole day.