When making a parenting order in relation to a child, the court is to have regard to the terms of the most recent parenting plan (if any) that has been entered into between the child's parents (to the extent to which that plan relates to the child) if doing so would be in the best interests of the child.