Using control flow instead of boolean operator in the hookable testers