Check if constants are defined.