protected function buildOptionalProjection(IFunction $function = null) { if ($function === null) { return null; } return $this->buildFunction($function, Queries\Functions\ElementProjection::factory()); }