A marriage shall not be recognized and shall not be registered under this Ordinance unless both parties to the marriage have consented thereto, and either –
(a) the wali of the woman has consented thereof in accordance with Islamic Law; or
(b) the Syariah Judge having jurisdiction in the place where the woman resides or any person generally or specially authorized in that behalf by the Syariah Judge has, after due inquiry in the presence of all parties concerned, granted his consent thereto as wali Hakim in accordance with Islamic Law; such consent may be given wherever there is no wali by nasab in accordance with Islamic law available to act or if the wali cannot be found or where the wali refuses his consent without sufficient reason.