When determining the sentence for a family violence offence, a court or a judge (a) may consider to be an aggravating factor the fact that the offender knew, or was reckless as to whether, a child was present or on the premises at the time of the offence, or knew that the affected person was pregnant; and(b) must take into account the results of any rehabilitation program assessment undertaken in respect of the offender and placed before the court or judge.