btw - there is an ExistKey function as well, but its been depracated and has been replaced by KeyExist (which has the proper boolean return codes) - from the manual:

Remarks: KEYEXIST is a replacement to the EXISTKEY function found in previous versions of KiXtart. While functionally equivalent, the Return Codes are now inverted, resulting in behavior similar to the EXIST function.