refact($anchorScroll): use Array.some for better performance