def _int_if_possible(string):
    """
    PRIVATE METHOD
    Tries to convert a string to an integer, falls back to the original value
    """
    try:
        return int(string)
    except ValueError:
        return string