s'il n'y avait

if there had not been

→ si
phrase Rare #46,245
if there had not been Usually followed by « pas eu » to express a condition that did not happen in the past: « s'il n'y avait pas eu… » means “if there hadn't been…” or “if it hadn't been for…”.
FR: Nous serions arrivés à l'heure s'il n'y avait pas eu de circulation.
EN: We would have arrived on time if there hadn't been any traffic.

S'il n'y avait pas eu de guerre civile, ils auraient été riches maintenant.

If there hadn't been a civil war, they would be rich now.

Je ne l'aurai jamais trouvé s'il n'y avait pas eu le signe sur la porte.

I never would have found it if there hadn't been a sign on the door.

— Le Hobbit : Un voyage inattendu (2012)

S'il n'y avait pas eu l'armée, ce pays serait en lambeaux!

If it weren’t for the army, this country would be in tatters!

— De tout cœur (1998)