Update isFunction and isObj

check their class attribute