<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def match_tweet(self, tweet, user_stream):
 """ Check if a tweet matches the defined criteria :param tweet: The tweet in question :type tweet: :class:`~responsebot.models.Tweet` :return: True if matched, False otherwise """

        if user_stream:
            if len(self.track) > 0:
                return self.is_tweet_match_track(tweet)

            return True

        return self.is_tweet_match_track(tweet) or self.is_tweet_match_follow(tweet)