Notwithstanding any other law, the question whether a marriage solemnised in a foreign country is to be recognised in Australia as valid shall be determined in accordance with the provisions of this Part, whether or not the determination of the question is incidental to the determination of another question.