checks for constant definition

Avoids an undefined constant warning