def is_reference_target(resource, rtype, label):
    """ Return true if the resource has this rtype with this label """

    prop = resource.props.references.get(rtype, False)
    if prop:
        return label in prop