def is_number(something):
    """
    Check if `something` is a number.

    Parameters
    ----------
    something : anything
        Something to be checked.

    Returns
    -------
    boolean
        True if `something` is a number. False otherwise.

    """
    try:
        float(something)
        return True
    except ValueError:
        return False