More robust config check