If the court determines an action brought under section 30.1-27-07 or this chapter is frivolous, the court may award reasonable, actual, and statutory costs, including reasonable attorney’s fees, incurred by or on behalf of the child.