Что делают фигурные скобки, окружающие параметры JavaScript для функций?
var port = chrome.extension.connect({name: "testing"}); port.postMessage({found: (count != undefined)});