violations

abstract fun violations(action: DoubleArray): List<String>(source)

Why not. Empty exactly when contains is true.