54. The court shall determine:(1) Whether the member whose election or return is contested has been duly elected or declared elected; or
(2) Whether any other person has been elected and, if so, who such person is; or
(3) Whether the election was void; and
(4) All other matters arising out of the petition or requiring its determination.