fixed checking for non-sexpr objects