implementation of "list is empty"