hasTriangle without comment