# Has() method definition?

**URL:** <https://discourse.cakephp.org/t/has-method-definition/1457>\
**Category:** Need Help\
**Created:** [November 4, 2016, 6:13pm UTC](https://discourse.cakephp.org/t/has-method-definition/1457 "2016-11-04T18:13:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cakenoob](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@cakenoob](https://discourse.cakephp.org/u/cakenoob)\
**Post date:** [November 4, 2016, 6:13pm UTC](https://discourse.cakephp.org/t/has-method-definition/1457/1 "2016-11-04T18:13:52Z")

</div>

In Cake 3’s baked templates, I see this construction:

`$composition->has('composer') ?`

I’ve searched and I’ve googled (both in the cookbook and the internet at large), but I can’t find any documentation for “has()”. I’m guessing that this is some kind of synonym for property\_exists(), but I’d really like to see that spelled out somewhere. Can somebody point me to where this is explicitly defined?

I’m new to CakePHP 3 – please be gentle.

---

<div class="post-metadata">

**Author:** ![rrd](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/rrd/32/113_2.png) [@rrd](https://discourse.cakephp.org/u/rrd)\
**Post date:** [November 4, 2016, 6:36pm UTC](https://discourse.cakephp.org/t/has-method-definition/1457/2 "2016-11-04T18:36:57Z")

</div>

[http://api.cakephp.org/3.3/class-Cake.Core.ObjectRegistry.html#\_has](http://api.cakephp.org/3.3/class-Cake.Core.ObjectRegistry.html#_has)

[http://api.cakephp.org/3.3/source-class-Cake.Core.ObjectRegistry.html#189-198](http://api.cakephp.org/3.3/source-class-Cake.Core.ObjectRegistry.html#189-198)

---

<div class="post-metadata">

**Author:** ![cakenoob](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@cakenoob](https://discourse.cakephp.org/u/cakenoob)\
**Post date:** [November 4, 2016, 7:12pm UTC](https://discourse.cakephp.org/t/has-method-definition/1457/3 "2016-11-04T19:12:27Z")

</div>

Thank you!! That was driving me crazy.
