def is_integer(number_string) -> bool:
    """Test whether number or string is actually integer."""
    try:
        float(number_string)
    except ValueError:
        return False
    else:
        return float(number_string).is_integer()