`array_key_exists` allows dependency data to be `NULL`. Sample case: this is possible when using `ExpressionDependency`.