Add a function to determine if a global flag is set

There is a function for determine if a flag is set but not a function to determine if a global flag is set. This adds the corresponding function for checking if a global flag is set.