Array.isArray() instead?