+ fix to handle empty trees