Refactored has_torrent