I put the defensive check because there was a test case that was failing because the branch_name was nil, but I don't recall where it was and failed to make a test case for it.