Eliminate warning with an array type check