debugging empty check