code: private static boolean isleap( double gpsTime ) {
          boolean isLeap = false;
          double[] leaps = getleaps();
          for( int i = 0; i < leaps.length; i += 1 ) {
              if (gpsTime == leaps[i]) {
                  isLeap = true;
                  break;
              }
          }
          return isLeap;
      }
docs: Test to see if a GPS second is a leap second