Modify the empty list ensure method

This commit just simplifies the condition.
The original code is not wrong but this
patch makes it simpler than the original.
It would be better for the maintainance code.

Change-Id: I00e5b75290f10e86c8e45b5d224ef66d7938bb69
1 file changed