Firstly, if you use SQL * Plus when creating an object and are informed that there are compilation errors, the command show errorswill show you errors.
If you started show errors, you would be told that the IF EXISTSsyntax is invalid. You could do something like
SELECT COUNT(*)
INTO l_cnt
FROM <<rest of query>>
IF( l_cnt > 0 )
THEN
RAISE_APPLICATION_ERROR ...
END IF;
, , . surveillance surveillance ( , , , INSERT VALUES, ). , .
, , , , , , , .
, , , , . , , . .
, ( , 11.2 ). . before . , / . after after , . , , .
, , . , , , , , . , , . , , , . , , , , , insert , . , , , .