added a check for total emptiness