Check and substitute guard condition