check relation is exist or not