public boolean dealerHits(Dealer dealer, Player player) {
        if (dealer == null || player == null) {
            return false;
        }

        int wins = 0;
        for (int i = 0; i < player.numberOfHands(); ++i) {
            if (wins(dealer.getActiveHand(), player.getActiveHand())) {
                ++wins;
            }
            player.switchHand();
        }
        return (canHit(dealer.getActiveHand()) && wins < 1);
    }