If you talk about what would happen if it wasn't for someone or something, you mean that they are the only thing that is preventing it from happening.
I could happily move back into a flat if it wasn't for the fact that I'd miss mygarden.
If it hadn't been for her your father would be alive today.