Detect if running in Termux

I noticed there is an environment variable TERMUX_VERSION, is the presence of this variable a reliable way to detect if a bash script is running in Termux?
Was this page helpful?