Consistently use _.isArray to check if variable is an array.