All channels contain data. You can tell if an alpha channel is black, white, or greyscale by the histogram.
For example if activeDocument.channels.getByName('myAlpha').histogram[0] == the number of pixels in the doc the alpha is all black. use histogram[255] to test for white.