reverse empty check logic