Use flatten withou bang.

The bang variant returns nil in case there was no change needed.