I think you didn't get. Before this change in the first call all the method body is called, and in the second call only the first line. So `partitioned_routes.first.empty?` is only called on the first call.

After this change `partitioned_routes.first.empty?` is called in every call of this method.