Checking if a card is selected or not