How to use Exists method with multidimensional associative array

In reply to dave_59:

Hi Dave,
But what if there is another dimension in the above associative array. Then how to use the exists function.
For example:

module top;
   int aa[int][int][int];
   initial begin
      aa[3][4][6] = 5;  
      $display(aa.exists(3) && aa[3].exists(4 ) && aa[3][4].exists(6 )); // this gives a compilation error " Error found while trying to resolve cross-module reference. token 'exists'."
   end
endmodule

The above gives compilation error because of aa[3][4].exists(6 ). Please advice what am I doing wrong.

Thanks in advance