If a court is lawfully entitled under this or any other enactment to impose a community-based sentence or a fine, or both, it may impose a community-based sentence only if—
(a)
the court, in accordance with section 13, does not regard a fine as the appropriate sentence; or
(b)
the court is not going to impose a fine because of either of the circumstances referred to in section 14.