Added 0 encounters check