cleaned checking if relation model exists