def is_flush(five_card_hand):
    """Return true if the hand is a flush."""
    for suit, suit_count in five_card_hand.suit_counts.items():
        if suit_count == 5:
            return True
    return False
