def process_results(results):
    """Process results depending on its length and return. """
    if len(results) == 0:
        return None
    elif len(results) == 1:
        return results[0]
    else:
        return results[0].union(results[1])