Add a function to determine if a global flag is set.