Please note that I'm not a native speaker.
Take this sentence:
Even if there would have been sufficient eggs — which there wasn’t — he would need other stuff sooner or later.
Is the wording "which there wasn't" grammatically correct and would a native speaker understand that, in fact, there were not sufficient eggs?