1/*
2 If you use the Apache Commons Collections library in your project,
3 you may use
4*/
5CollectionUtils.isEmpty(MyList) or MapUtils.isEmpty(MyList)
6
7/*
8 which respectively check
9 if a collection or a map is empty or null
10 (i.e. they are "null-safe").
11*/
12
13/*
14 Small tip:
15 remember that the less code you write,
16 the less code you need to test as the complexity of your code decreases.
17*/