A stipulation or engagement by a party insured, that
   certain things, relating to the subject of insurance, or affecting the
   risk, exist, or shall exist, or have been done, or shall be done. These
   warranties, when express, should appear in the policy; but there are
   certain implied warranties.