``` if (!existCell.isEmpty()) { if (existCell[exi...
# codereview
a
Copy code
if (!existCell.isEmpty()) {
	if (existCell[existCell.size - 1] == 1) {
		cell = 9
	}
	if (existCell[existCell.size - 1] == 3) {
		cell = 7
	}
	if (existCell[existCell.size - 1] == 7) {
		cell = 3
	}
	if (existCell[existCell.size - 1] == 9) {
		cell = 1
	}
}
If there a way to improve this in code in Kotlin?