Detect browser state based on existence of process.browser