Added back isObject validation