checking inArray fn