just use Array.every instead of map and reduce