fixed checking whether array key is set

We need to check whether $native is an array before asking for key's existance. If $native is string, isset($native['...']) will always return true, because it's evaluated as $native[0] which is the first character of the string.