All those tests could be changed to `if (telephony.active.group)`.