code: def is_set(name):
    
    val = os.environ.get(name, '0')
    assert val == '0' or val == '1', f"env var {name} has value {val}, expected 0 or 1"
    return val == '1'
docs: Helper method to check if given property is set