judge the selector is not empty