correct window.chrome.app version existence check

('version' in window.chrome.app) returns false on Chrome, but ('version' in window.chrome.app.getDetails()) returns true.
I suspect this is what was intended?