def check_values_on_diagonal(matrix):
    """
    Checks if a matrix made out of dictionary of dictionaries has values on diagonal
    :param matrix: dictionary of dictionaries
    :return: boolean
    """
    for line in matrix.keys():
        if line not in matrix[line].keys():
            return False
    return True