5 Second Form Helper Question

Permalink
I'm wondering if the following is bug in the Form Helper (radio control) or am I just an idiot (thought I'd ask before posting as a Bug)?

I am referring to the $valueorArray parameter below. Within the function it seems to be referenced as $isCheckedOrArray. Shouldn't the variable inside the function also be $valueorArray? (It is here my distinct PHP novicehood my might come shining through)

public function radio($key, $value, $valueOrArray = false, $miscFields = array()) {
$str = '<input type="radio" class="ccm-input-radio" name="' . $key . '" id="' . $key . $this->radioIndex . '" value="' . $value . '" ';

if (!is_array($isCheckedOrArray)) {
$isChecked = $isCheckedOrArray;
} else {
$miscFields = $isCheckedOrArray;
}

if (is_array($miscFields)) {
foreach($miscFields as $k => $value) {
$str .= $k . '="' . $value . '" ';
}
}

if ($valueOrArray == $value && !isset($_REQUEST[$key]) || (isset($_REQUEST[$key]) && $_REQUEST[$key] == $value)) {
$str .= 'checked="checked" ';
}

$this->radioIndex++;

$str .= ' />';
return $str;
}