Now using Array.isArray instead of Underscore