def is_float(f):
    """Check if a variable is a `float` type.
    
    Args:
        f: The object to check.

    Returns:
        :obj:`bool`: If the object can be converted to a :obj:`float`.
    """

    if not f:
        return False
    try:
        float(f)
        return True
    except ValueError:
        return False