More correct will be:

```
if sub_list and len(sub_list):
```

It will give same result as comparing to zero.
http://docs.python.org/release/2.5.2/lib/truth.html