list.js: fix initial isEmpty status, and add list.isEmpty()
better variable name