use the fact that empty sequences are false

fixed bug #1156473

Change-Id: I43470eb884107111cbea958868f4cf8241c8d6e6
Merge "use the fact that empty sequences are false"