fixed the wrong way of checking for browser-related properties.