change conditional type from variable to xhr test condition