Actually you just nicely confused me :) It has to by be-ref, because otherwise it is bound by value when this line gets executed, i.e. it would be always false.