code: private static boolean methodExists(String controllerMethod, Class<?> controllerClass) {
          Objects.requireNonNull(controllerMethod, Required.CONTROLLER_METHOD.toString());
          Objects.requireNonNull(controllerClass, Required.CONTROLLER_CLASS.toString());
          
          return Arrays.stream(controllerClass.getMethods()).anyMatch(method -> method.getName().equals(controllerMethod));
      }
docs: Checks if a given method exists in a given class
  @param controllerMethod The method to check
  @param controllerClass The class to check
  
  @return True if the method exists, false otherwise