In your transformation add another repeater and set it up like so:
<script runat="server">
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
Guid nodeGuid = ValidationHelper.GetGuid(Eval("NodeGuid"), Guid.Empty);
repRelated.Path = "/Locations/%";
repRelated.RelationshipWithNodeGuid = nodeGuid;
repRelated.ReloadData(true);
}
</script>
<!-- your other transformation code -->
<cms:CMSRepeater ID="repRelated" runat="server" DelayedLoading="true" RelationshipName="isrelatedto" RelatedNodeIsOnTheLeftSide="true" ClassNames="MyPageType.Location" TransformationName="MyPageType.Location.LocationListLink" />
This will display related pages if there are any to this page (node guid). No need to write a lot of custom code for this.