---
layout: docs
title: getIsOptional
id: class.Facebook.HackCodegen.CodegenShapeMember.getIsOptional
docid: class.Facebook.HackCodegen.CodegenShapeMember.getIsOptional
permalink: /docs/reference/class.Facebook.HackCodegen.CodegenShapeMember.getIsOptional/
---
# Facebook\\HackCodegen\\CodegenShapeMember::getIsOptional()




``` Hack
public function getIsOptional(): bool;
```




## Returns




+ ` bool `