public function shiftFirstEntry(ContentStream $cs, $type, \Closure $withFilter = NULL) {
    if (($entry = $cs->findFirst($type, $withFilter)) != NULL) {
      $vars = $this->convertEntryTemplateVariables($entry, $cs);
      $cs->removeEntry($entry);

      return $vars;
    }

    return NULL;
  }