MIght be this is helpfull in discussion :
ref: http://wiki.secondlife.com/wiki/Key
Testing for a valid key:
To test for a valid key, just do this:
if(uuid){
//do something
}
if(uuid) will only return true if it is supplied a key that is both (A) valid, and (B) NOT a NULL_KEY.
GiMiSa