GetItemAtIndex remove warning on empty list (custom node?)

For your understanding, the imperative code is needed because i want to give an empty list as an output. This is not possible with an associative code, the codeblock would always put out an empty list:

see also: IF-Condition - NULLS and EMPTY LISTS