should check for non-empty list