def is_available(program: str) -> bool:
    """
    Check whether `program`'s man pages are available on this system.

    """
    if NO_MAN_PAGES or os.system == 'nt':
        return False
    try:
        process = subprocess.run(
            [MAN_COMMAND, MAN_PAGE_SECTION, program],
            shell=False,
            stdout=subprocess.DEVNULL,
            stderr=subprocess.DEVNULL
        )
    except Exception:
        # There might be some errors outside the process, e.g
        # a permission error to execute something that is not an
        # executable.
        return False
    else:
        return process.returncode == 0

    Check whether `program`'s man pages are available on this system.

    
httpie/output/ui/man_pages.py