The property `cardState` is accessed five times in this function... creating a local binding alias might improve the overall readability of the code.