def is_int(value):
    """Checks if a value is an integer.

    The type of the value is not important, it might be an int or a float."""
    try:
        return value == int(value)
    except Exception:
        return False
