def _is_int(value):
try:<EOL><INDENT>int(value)<EOL><DEDENT>except ValueError:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Use casting to check if value can convert to an `int`.