I would say it's better to let users be aware that the KDTree feature is available if Nanoflann is installed, rather than telling them that it's not available at all.