How to check if a card is closed