correcting scoping issues with a couple lines in executethis and changing the way isObject calculates true/false