List-type variables that can be empty

Hello everyone,
I’m working on Teddy and I have list-type variables that can be empty. I need an IF logic test that prevents the code from executing if the variable is empty.
Does anyone have any ideas?

How do you input/access the input lists?
What’s the format?

If you provide an example code snippet, it might be possible to help you.