Error Array_key_exists afer SC 9.9 and php 8.1

after migrating to php 8.1 version this code:

if(array_key_exists(‘Data_Q’, $fileJson))
{
$date_queue=$fileJson->{‘Data_Q’};
}

error:
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, stdClass given in
C:\Program Files\NetMake\v9-php81\wwwroot\s

is SC error??