def isVideo(tweet):
  """Returns True if a tweet had a video uploaded with it, false otherwise."""

  if 'extended_entities' in tweet:
    if 'media' in tweet['extended_entities']:
      for i in range(len(tweet['extended_entities']['media'])):
        if tweet['extended_entities']['media'][i]['type'] == 'video':
          return True
      return False
    else:
      return False
  else:
    return False