(iv) Such disposition is not inconsistent with the ends of justice.
[Effective until 9/1/2017] Provided, however, that the court shall not, except to the extent authorized by paragraph (d) of subdivision two of section 60.01 of this chapter, impose a sentence of probation in any case where it sentences a defendant for more than one crime and imposes a sentence of imprisonment for any one of the crimes, or where the defendant is subject to an undischarged indeterminate or determinate sentence of imprisonment which was imposed at a previous time by a court of this state and has more than one year to run.
[Effective 9/1/2017] Provided, however, that the court shall not, except to the extent authorized by paragraph (d) of subdivision two of section 60.01 of this chapter, impose a sentence of probation in any case where it sentences a defendant for more than one crime and imposes a sentence of imprisonment for any one of the crimes, or where the defendant is subject to an undischarged indeterminate or reformatory sentence of imprisonment which was imposed at a previous time by a court of this state and has more than one year to run.