change to only Array.isArray