579. When required.

In forming an opinion for the purposes of the statutory provisions concerning the imposition of community sentences1, a court2 must take into account all such information as is available to it about the circumstances of the offence or (as the case may be) of the offence and the offence or offences associated