moved isAlpha test to new file