<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_internet_available(ips=CONNECTION_IPS, timeout=1.0):
 """ Returns if an internet connection is available. :param ips: Address ips to check against. :type ips: list :param timeout: Timeout in seconds. :type timeout: int :return: Is internet available. :rtype: bool """


    while ips:
        try:
            urllib2.urlopen("http://{0}".format(ips.pop(0)), timeout=timeout)
            return True
        except IndexError as error:
            continue
        except (urllib2.URLError, socket.error) as error:
            continue
    return False