Use native isArray function