def usage_of_matomo(registry):
    """
    Returns true, if matomo is set in the current ini file.

    :param registry: request.registry
    :return: Boolean
    """
    if 'mode' in registry.settings:
        return registry.settings['usage_of_matomo'].lower() == 'true'
    return False