I don't think it requires to detect the sim. Guess Android phones would have a simmilar thing but iOS devices have a carrier profile that gets Installed and updated from time to time.
Moreover this is a test case scenario. Under normal circumstances, you dont need to put the device to Airplane mode to use Wifi calling. It should kick in automatically once the signal level goes below specified dBm.