typeahead
added isArray as template helper