check Distance
Checks if a specified distance is among the available distances for the activation.
If distances are empty, returns true
.
If distances are dynamic, returns true
if the specified distance is within the range (0, getMaxDistance].
Return
true
if the specified distance is among the available distances, false
otherwise.
Parameters
distance
The distance to check.