Test for 'flex' part only applies if there is one to worry about

There are three cases here, the most common being no flex part at all
and so no action taken.