proper checking of a constant's value