Correct check for if we need to process flattening

FROGGS++ for debugging.