No municipality in the county shall enter into a contract for the collection, transportation or disposal of its garbage with any person or municipality who or which has not secured proper licenses from the county commissioners under the provisions herein. The provisions of this section shall not apply where the collection, transportation or disposal of garbage is carried on wholly within the boundaries of a municipality so contracting.
16 P.S. § 5183