code: @Restricted(NoExternalUse.class)
      public boolean isUrlNull(){
          JenkinsLocationConfiguration loc = JenkinsLocationConfiguration.get();
          return loc.getUrl() == null;
      }
docs: used by jelly to determined if it's a null url or invalid one