Added browser checks so that core does not have to return early in non-browser environments