Error checking branch