preventing stats over empty lists