Small fix to Card.is_valid