Empty lists are considered False in Python, hence the bool() function would return False if the list was passed as an argument . Other methods you can use to check if a list is empty are placing it inside an if statement, using the len() methods, or comparing it with an empty list.
Read moreDoes list isEmpty () check for null?
isEmpty() doesn’t check if a list is null . If you are using the Spring framework you can use the CollectionUtils class to check if a list is empty or not.22 Mar 2016
Read more