using _.isEqual to compare arrays