phrase request-'Luckily, it could have been worse'

Solution 1:

Consider:

Thank God (it wasn't any worse)!

Thank God: (spoken) be pleased or happy: Thank God no one was in the way or on the sidewalk when the bus went out of control

Or

Thankfully (it wasn't any worse)!

thankfully: (Informal) fortunately: Thankfully she wasn't injured

Or

Phew(, it could have been worse)!

Phew: used to express relief

Or

Am I ever lucky!

Or

Lucky me! (can also be meant sarcastically depending on context)

Or

Lucky me -- and lucky you, too! (Here's the money)

Or

All's well that ends well!

Or

Thankfully, it looked worse than it actually is!

Solution 2:

"Phew!" But that's not a phrase..

"Thank God!" is common.. and should pass for an acceptable applicable expression, anywhere..

"Hurrah!" or "Luckily!" are also obviously relevant.

"I knew it!" would refer back to why or what (or both) you had been been fumbling in the bag for in the first place..

Me I'd say "Yes!!!" in such a situation, on any normal earth day, at any instant of caesium decay