I'm not sure about the exact meaning of this sentence:

I’m not sure about the exact meaning of this sentence: “Ob ich den Akku auch gefunden hätte, wenn ich mir keinen neuen Akku gekauft hätte?” I think it means “Would I have found my battery, if I hadn’t bought a new one?” But I’m not sure about the grammar.

Sounds to me like a good translation.

Thanks.