def check_if_distance_valid(max_distance_km):
    """
    Function to check if the max_distance_km is valid
    max_distance_km: distance in kilometers
    """
    if isinstance(max_distance_km, float) or isinstance(max_distance_km, int):
        if max_distance_km > 0.0:
            return True
    return False
