Optimize condition for empty collections to avoid computing the size of
a linked list, which is O(N), whenever possible
Authored by: klaussfreire 2016-07-03
Parent: [r13712]
Child: [r13714]