simplified isArray and isOBject
minor tweak