check for null tree