When there are no rows, nothing gets printed which is why I added the print statement.