improved check for global_option var keys