Added the fail_on_undefined_vars flag to 'exists' conditions.