check if "ids" is empty