skip querying if the name is empty