code: public function header(string $name, string $value): bool
      {
          if (!empty($name) && !empty($value) && !headers_sent()) {
              header($name . ': ' . $value);
              return true;
          }
          return false;
      }
docs: Set response header.
  
  @param string $name
  @param string $value
  @return bool