Check if min distance is not None.