Civil Code § 1441
CHAPTER 3. Conditional Obligations
A condition in a contract, the fulfillment of which is impossible or unlawful, within the meaning of the Article on the Object of Contracts, or which is repugnant to the nature of the interest created by the contract, is void.