typeof ... 'array' does not work