check if relationship is not null