laravel check if relation id exists