def validate_args(args):
    """
    Checks if the first argument in the list is a number.

    Args:
        args (list) - Command line arguments

    Returns:
        0 if the first argument is a number
        1 if the first argument is not a number
        2 if the list is empty
    """

    # Attempt to convert the first argument to an integer
    try:
        int(args[1])
    except:
        return 1

    if len(args) == 0:
        return 2
    else:
        return 0