Change empty-check to isset (allows a threshold of 0).