checks if relation object exists