def is_connected(fritz_connection):
    """
    Returns True if the FritzBox has established an internet-connection.
    """
    status = fritz_connection.call_action('WANIPConnection', 'GetStatusInfo')
    return status['NewConnectionStatus'] == 'Connected'