Typescript Get Index Of Object In Arrays Can There Be One