The competent institution of a Member State whose legislation makes the acquisition, retention or recovery of the right to benefits conditional upon the completion of periods of insurance or residence shall, where necessary, apply Article 51(1) mutatis mutandis.