It does (wifi assist for example) but until the phone has established if the connection works or not, the user already switched it off. When I leave the house I get ~10 sec with wifi but no actual connection. That's long enough for me to notice it but probably not enough for the iphone to detect if Wifi is really not available.