In determining any question or matter referred to it, the Administrative Court may make such order as to costs as it deems fit:
Provided that—
(i) in deciding the question of costs in connection with an appeal by a person aggrieved by an application being deemed to have been refused in terms of subsection (7) of section twenty-six or subsection (6) of section forty, the Administrative Court shall have regard to the expenses incurred by the appellant by reason of the failure of the local planning authority concerned to make a decision and to the reasons for the delay in dealing with the application;
(ii) in any matter not referred to in proviso (i), no order as to costs shall be made against any person unless the Administrative Court considers that that person has behaved unreasonably.