Generally yes, but this compiler pass wires the serializer. If the serializer were to remove the dependency on the PHP collection library, this bundle would not have a dependency on it itself.

As such, I think this is fine here.