Checking the class like this won't work, since some folks duck-type their own credit card class. What you want to do instead is check `card_brand(payment_source) == 'check'`, and if that's false, just assume it's a credit card.