isSametree