get emptyness check working