slightly better check - there's probably a cfg var I could check here instead of using try/catch