import pkg_resources


def get_version(name: str) -> str:
    """
    Get distribution version number, if it exists.

    Examples:
        >>> get_version("numpy") == ""
        False
        >>> get_version("not_an_distribution") == ""
        True

    """
    version = ""
    try:
        version = pkg_resources.get_distribution(name).version
    except pkg_resources.DistributionNotFound:
        pass
    return version