#43 Allow 0 based idx

Lets '0' pass the ternary allowing a value of 0 to be passed to idx.