Just use the KeyExist function, like:

 Code:
IF KeyExist("HKCU\Software")

 ?"Yup..."

Else

 ?"Nope..."

Endif