How to check if array is empty

Hi,

How can I check if an array is empty, e.g. I would like to:

If array is empty, do “Log Message 1”
else
do “Log Message 2”

:if ([:len $array1] > 0) do={

Complete it would be:

:if ([:len $array1] > 0) do={
	:log info message="2"
} else={
	:log info message="1"}

Thx to both, selected Jotne’s post as solution due to it being more “complete”