import os


def parse_environment_flag(name: str) -> bool:
    value = os.environ.get(name)
    if not value:
        return False
    value = value.lower()
    if value in ("true", "1", "yes", "on"):
        return True
    return False
