def is_int(val):
    """
    Check if val is int
    Parameters
    ----------
    val: value to check type
    
    Returns
    -------
    True or False
    """
    if type(val) == int:
        return True
    else:
        if val.is_integer():
            return True
        else:
            return False