private function renderNewUserView(PhabricatorApplicationSearchEngine $engine, $force_nux)
 {
     // Don't render NUX if the user has clicked away from the default page.
     if (strlen($this->getQueryKey())) {
         return null;
     }
     // Don't put NUX in panels because it would be weird.
     if ($engine->isPanelContext()) {
         return null;
     }
     // Try to render the view itself first, since this should be very cheap
     // (just returning some text).
     $nux_view = $engine->renderNewUserView();
     if (!$nux_view) {
         return null;
     }
     $query = $engine->newQuery();
     if (!$query) {
         return null;
     }
     // Try to load any object at all. If we can, the application has seen some
     // use so we just render the normal view.
     if (!$force_nux) {
         $object = $query->setViewer(PhabricatorUser::getOmnipotentUser())->setLimit(1)->execute();
         if ($object) {
             return null;
         }
     }
     return $nux_view;
 }