This could be

    if (!columnHandle.equals(sampleWeightColumn.orNull()))