List.IsEmpty Function in Power Query
The List.IsEmpty function returns true if the list is empty, otherwise false.
Syntax
List.IsEmpty(list as list) as logical
Example: Find if the list {} is empty.
Power Query M
List.IsEmpty({})
The output of the above code returns true, as the list is empty.
Example: Find if the given list is empty or not.
Power Query M
let source = {"India", "America", "Canada", "Japan", "Australia", "England"}, return = List.IsEmpty(source) in return
The output of the above code returns false, as the list is not empty.