isInternetAvailable method bug