Remove the use of the in operator in closure optimized code