What about casting `value` as an Array with `Array()`? That way you can avoid the if then dance here.