Check if one element in Multidimensional array is empty

Hi In one of my events, I used sc_lookup and it gives results in a multidimensional array.

I want an if statement that if my dataset[0][1] is empty, something happens.
But no matter how I wrote it it doesn’t check if its empty or not. I’ve tried ==“NULL”, =="", ==" " and empty(). How can check and see if an element is empty?

if(empty({dataset[0][1]}))
{   
	//code here
}
else
{
	//code here
}

The answer is here: empty dataset from search form in Scriptcase - #2 by Gerd_Dietrich

Basically:

if (false == {dataset})
{
// Error while accessing database
}
elseif ({dataset}->EOF)
{
// No record found
}
else
{
// Record found
}