Hmm... actually I think it should be keyParts.Length >= 3 because the additional dots from the branch name will make the Length longer