code: protected function isAllowed($limit, $config)
      {
          if ($limit["cnt"] >= $config["count"]) {
              if (time() > $limit["ts"] + $config["blockDuration"]) {
                  return true;
              } else {
                  return false;
              }
          } else {
              return true;
          }
      }
docs: Returns whether the entity is currently rate limited
  
  @param array $limit Limit data for the entity
  @param array $config Limit configuration
  @return boolean false if the entity is rate limited, true otherwise