An indemnity is a contract, express or implied, to keep a person who has entered into or who is about to enter into a contract, or incur any other liability, indemnified against loss, independently of the question whether a third person makes default. An indemnity is a valuable consideration.