Since ASProtect protection is applied directly to the applications by wrapping them into security envelope which contains all protection functions, so it is very important to check whether envelope exists or there was an attempt to remove it manually from the protected application. In order to use envelope checks you need to insert one of two type of checks as shown below.
Type 1 - if ASProtect envelope was removed - it just generates an exception. You can handle it and then do something awful.
Type 2 - this type works as a function that returns false, if ASProtect envelope was removed.