alter check to empty()