def check_merges(matches):
    """Checks merging matches"""
    output = []
    for source in matches:
        try:
            results = [(source[0], 0)]
            count = 0
            for match in source[1:]:
                if match[3] > results[-1][0][4]:
                    count += 1
                results.append((match, count))
            output.append(results)
        except IndexError:
            output.append(None)
    return output
