isNotNullOrEmpty

Checks if a list is not null and not empty.

Return

true if the list is not null and contains at least one element, false otherwise.