Ninja: remove redundant check for null