Section 319. Obligation to consider loss of rights and a restraining order

When a person is found guilty of a criminal act pursuant to sections 299, 302, 304 or 305, the court shall consider whether loss of rights pursuant to section 56 and a restraining order pursuant to section 57 shall be imposed.