check a flag