Check if chat exists before updating chatRooms