nvault_lookup() returns true if data exists for the key. That is all you need to do to check if data exists.
PHP Code:
if ( nvault_lookup( iVault , "thekey" , szData , maxlen , timestamp ) )
{
//data exists, overwrite if needed
}
else
{
//no data exists for specified key
}
The same is true for nvault_get()
__________________