Title 50, chapter 6, concerning compensation for workers injured during the course of their employment, shall not apply to a person injured while participating in a ridesharing arrangement between such person's place of residence and place of employment or termini near such places; however, if the employer owns, leases, or contracts for the motor vehicle used in such an arrangement, title 50, chapter 6 shall apply.