later you check only if type is ib, so maybe have here `ib = LanItems.GetCurrentType == "ib"`