def _has_child_providers(ctx, rp_uuid):
    """Returns True if the supplied resource provider has any child providers,
    False otherwise
    """
    query = """
            MATCH (rp:RESOURCE_PROVIDER {uuid: '%s'})-[:CONTAINS]->(child)
            RETURN count(child) AS num
    """ % rp_uuid
    result = ctx.tx.run(query).data()
    return bool(result[0]["num"])