make more use of inject trailing if