{% macro check_variable(var_name) %}

    {% if var(var_name, none) is none %}
        {{ exceptions.raise_compiler_error("The required global variable " ~ var_name ~ " hasn't been provided!") }}
    {% endif %}

{% endmacro %}