Checks if internet connection is on.