can't you use ``defined()`` somehow to validate the existence of a matching constant instead of having to have this array?