made if check if lookup is NULL in check test condition