This is a backwards incompatible change; test for array inside the method instead.