You have a spelling error, its IF EXIST() and you have an 'S' too much at the end.
_________________________
There are two types of vessels, submarines and targets.