Should be `lockedState.indexOf(cardState)`. And we can simply return `lockedState.indexOf(cardState) > 0`.