def publication_has_distributions(pub, pubs, dists):
    """Return whether a publication has any distributions.

    :param pub: Publication to find a distribution for.
    :param pubs: Existing publications in Pulp.
    :param dists: Existing distributions in Pulp.
    """
    if not pub:
        return False
    pub_href = pub["pulp_href"]
    for dist in dists:
        if dist["publication"] == pub_href:
            return True
    return False