Add function to determine if a live internet connection is available.