use '!' instead of '=== undefined' to determine whether browserstack is configured or not.