only print something if list isn't empty