check type to prevent an array start with 0