public function getSubpages(int $pid, int $recursion = 1, bool $exclude = true, int $languageUid = null): array {
    $subpages     = [];
    $subpagesUids = $this->getSubpagesUids($pid, $recursion, $exclude);

    if ($subpagesUids) {
      foreach ($subpagesUids as $subpageUid) {
        $record = $this->getPage($subpageUid, $languageUid);

        if ($record) {
          $subpages[] = $record;
        }
      }
    }

    return $subpages;
  }