Add ()'s so that instanceof check works as intended

instanceof has a higher precedence than the ! operator, so this is needed, otherwise you're just calling 'true instanceof Array' or 'false instanceof Array' which are both always false.