code: public boolean isBye() {
      if (message == null) {
        return false;
      }
  
      return (((Request) message).getMethod().equals(Request.BYE));
    }
docs: Indicates if the request method is BYE or not.
  
  @return true if the method is BYE, false otherwise.