Empty resources access

Iam trying to find web acl resources by using plan .find_resources. And later in the code I am trying to check if it is empty but sentinel throws an error saying unknown identifier accessed: empty
Is there any way to tell sentinel if it a empty resource, it needs to fail ?

web_acl_resources = planFn.find_resources(“aws_waf_web_acl”) else null
if !(web_acl_resources is empty ){

action =


I’ve taken a look and I have a working example.

There is no need to use else null as the find_resources function will either return a map of resources or an empty map.