Yes.
That sounds like a complicated fact scenario. I think the issue is that at the time the offence was committed, was the person a parent or a person standing in place of the parent? That can be determined on the basis of law—as your colleague has pointed out, by a legal paper—or it can be on the basis of having just de facto custody.