Improve getCard() in app/Model/Card.php