use simpler typedarray check