add empty optimisation for concatWith