Use any, map to replace for loop