code: @Override
      public boolean hasProtocol(final Protocol p) throws IOException {
          if (p == null) {
              return false;
          }
  
          try {
              final Packet packet = getPacket(p);
              return packet != null;
          } catch (final Exception e) {
              return false;
          }
      }
docs: /*
  (non-Javadoc)
  
  @see io.pkts.packet.Packet#hasProtocol(io.pkts.protocol.Protocol)