add is_array check since counting an uncountable returns 1 also ...