Added constantExists() helper