Use isEmpty instead of size == 0

Proprietary

Replaces collection.size == 0 with collection.isEmpty for clarity and potential performance benefits.

org.openrewrite.scala.performance.UseIsEmpty
mod run . --recipe=org.openrewrite.scala.performance.UseIsEmpty

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.