no longer dependent on findIndex (polyfill)