API to know if Rosetta is available

Is there an API for an app running on arm64 to know whether Rosetta is available? Currently that's always "yes", if you're on arm64 then Rosetta is always available and x86_64 apps can run on it. But I'm sure in future OS versions Rosetta may go away.

What is the future-proof for an arm64 app to know if x86_64 is supported before it starts an x86_64 subprocess?