def researched_before(technology, timestamp, player):
    """Check if a technology was researched before a given time."""
    for item in player['research']:
        if item['technology'] == technology and item['timestamp'] < timestamp:
            return True
    return False