update flag check to use correct syntax
Merge pull request #48 from Financial-Times/fixing-ad-flag

update flag check to use correct syntax