inArray doesn't return boolean fix