checks if remaining accounts is empty