/**
  * Checks if current position is valid if $operation is null and else if the parameters of this endpoint are valid for the http method
  * @param null|string $operation null or the http method
  * @return bool
  */
 public function valid($operation = null)
 {
     if ($operation !== null) {
         return parent::valid($operation);
     } elseif ($this->_currentItem < $this->_pageItems && $this->_currentPage <= $this->_pages) {
         return true;
     }
     return false;
 }
 /**
  * @param mixed $name sub name
  * @return bool indicating if a subpath with this name exists (Does not mean there is a instance. Use isset to check if the instance exists)
  */
 public function existsSub($name)
 {
     return parent::exists($name);
 }
 public function __construct($client_id, $tag)
 {
     PostType::setup();
     Fetch::setup();
     APIEndpoint::create($client_id, $tag);
 }