def helper_float(val):

    """
    Helper function for use with `dict_reader_as_geojson`.  Returns `None` if
    the input value is an empty string or `None`, otherwise the input value is
    cast to a float and returned.
    """

    if val is None or val == '':
        return None
    else:
        return float(val)