check for integers in a list