make hasInternetConnection private