improve way to check not def or no eg sentence