Do you feel an Array.filter() implementation here will result in less lines of code and better performance?