Use !isnumber rather than isstring to determine whether to use object or array __(new)index