def check_sequence_names_unique(sequence):
    """
    Checks that the names of entities are all unique
    """
    entity_names = [x['name'] for x in sequence]
    result = len(entity_names) == len(set(entity_names))
    if not result:
        return {
            'result': False,
            'message': "All names of entries in ssl_sequence must be unique."
        }
    return {
        'result': True,
        'message': "All entry names are unique."
    }