use try catch instead of chrome specific checks