Optimized isBrowser/isServer