It does that in the hasInternet method.