You can use a check to evaluate the current situation.