Yes, though again, throwing out a checkout session for anyone running that extension isn't wise.
"If GA is unreachable then window.ga wouldn't be defined."
The legacy code you insert for GA does:
var ga = document.createElement('script'); first, then loads GA. Wouldn't that have the same issue if GA is unreachable?