add dependent destroy check