Check correct object for native `isArray`

Courtesy of @khtdr
fixes #10