Improved the Torrent#hasPeer function