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




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




## Returns




* ` bool `