is.integer is a better check than is.number