Flatten nested if statements, see https://github.com/phetsims/scenery-phet/issues/666
Flatten nested if statements, see https://github.com/phetsims/scenery-phet/issues/666

phetsims/scenery-phet,phetsims/scenery-phet,phetsims/scenery-phet