Might want to also add `|| isObject(number)` to prevent processing arrays as numbers