s3-ads: Fix wrong test in if statement