check for empty list