Use reliable isArray function
Improved mocks