def get_extended_media(tweet):
    """
    Twitter annoyingly only returns extended_entities if certain entities exist.
    """
    maybe_entities = tweet.get('extended_entities', {})
    return maybe_entities.get('media', [])
