is_array check is redundant with declared parameter type