Minor optimisation: it's enough to compare lists directly