int BURNED_TREES_VAR = world.program().interfaceGlobals().size() + 1;
int patchCount = world.patches().count();
boolean any = false;
for (int i = 0; i < patchCount; i++) {
Patch patch = world.getPatch(i);
double pcolor = patch.pcolorDouble();
if (pcolor > RED_MINUS_FOUR && pcolor < RED_PLUS_ONE) {
any = true;
break; // in the Logo code, the compiler uses _anywith to get this optimization
}
}