37. Decision of the court.

(a) dismissing the election petition; or
(b) declaring the election of all or any of the returned candidates to be void; or
(c) declaring the election of all or any of the returned candidates to be void and the petitioner or any other candidate to have been duly elected.
(a) that in fact the petitioner or such other candidate received a majority of the valid votes; or
(b) that but for the votes obtained by the returned candidate by corrupt practices the petitioner or such other candidate would have obtained a majority of the valid votes,