Added polyfill for Array.find