---
title: "Discussion on \"Using Optional Chaining for checking for existence of nested Object key\" | Hashnode"
description: "Discussion on \"Using Optional Chaining for checking for existence of nested Object key\". In PHP we can do use isset() for checking the existence of a deeply nested array's key since the beginning of time :\n<?php\n$p1 = \"a9bedbd81019b877\";\n$p2 = \"47bd5f64f7be5578\";\n\n$obj =\n[\n    'people' =>\n    [\n        $p1 =>\n        [\n            'first..."
url: "https://hashnode.com/posts/using-optional-chaining-for-checking-for-existence-of-nested-object-key/6318331a961d2507e75fd56d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using Optional Chaining for checking for existence of nested Object key](https://javascript.co.in/using-optional-chaining-for-checking-for-existence-of-nested-object-key?utm_source=hashnode&utm_medium=feed)

In PHP we can do use isset() for checking the existence of a deeply nested array's key since the beginning of time : <?php $p1 = "a9bedbd81019b877"; $p2 = "47bd5f64f7be5578"; $obj = \[ 'people' => \[ $p1 => \[ 'first...

Sep 7, 2022 · 1 min read · javascript.co.in  
Read the article

-   [#object](https://hashnode.com/tag/object)
-   [#optional-chaining](https://hashnode.com/tag/optional-chaining)

## Written by

[Anjanesh Lekshminarayanan](https://hashnode.com/@anjanesh)

@anjanesh · Navi Mumbai, MH

  
[View profile](https://hashnode.com/@anjanesh)

Web UI Engineer

I am a web consultant from Navi Mumbai. Mainly dealt with LAMP stack, now into Django and getting into Laravel and Cloud. Founder of nerul.in and gaali.in

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
