typo and isArray fix