import math


def is_valid_distance(number: float):
    """Checks if the number is a valid (non inf, nan, etc.) distance."""
    if number is None:
        return False
    if math.isnan(number):
        return False
    if math.isinf(number):
        return False
    if number < 0:
        return False
    return True