added checkInt (fixes #17)
exported which.first