zero-index checking