According to some interpretations (including, it seems, the explanations of Spinoza) the Ibn Ezra's commentary makes allusion to the idea that some of the Torah (beyond the talmudic discussion of the final pesukim of the Chumash) was not written by Moshe, but was added later.
The Rambam says clearly that the Torah that we have is the divine and perfect one given to Moshe (as mentioned in this answer).
Is there any way to know if the Rambam (who was born when the Ibn Ezra was about 49 years old) was aware of the writing of the Ibn Ezra and if his formulation of the Ikkarim was in any way a response not to external, non-Jewish claims against the divinity and perfection of the text, but to the Ibn Ezra's potential claims?