Check for internet connection