correct empty check