Replace last remaining [] condition by test.