def valid_integer(to_check):
    """
    Check if the value in to_check is actually an integer.  to_check can be a 
    string or already an integer.
    returns True or False
    """
    try: 
        int(to_check)
        return True
    except ValueError:
        return False