refactor anonymous binding check