def valid_integer(obj):
    """
    Validates if input is an integer
    :param obj: Input object. This could be a string or integer
    :return: True if integer
    :return: False if string
    :rtype: Boolean
    """
    if obj:
        try:
            int(obj)
            return True
        except ValueError:
            return False