typeof([]) does not return 'array'