Better checking for whether we are in the browser or node