Added new helper method constantExists()
Pass constant name to the method and get a bool in return. True denotes
that the constant is available for use.