<commit_before>![Build status](https://api.travis-ci.org/webdevvie/nestis.svg)

Nestis
======

A simple class to get a nested property or array key from an array or nested property.


Why
---
Having gone through several weeks of is_null($object) checks and not being able to reliably depend on the api's output 
I was using to always have the objects I decided this method needed to be made. Now I can do the following without 
the fear of running into a null or other random object that the api responds with:
 
```
public function getThatThingIWant($apiResponse)
{
    return $nestis->getNestedItem('someObject/someOtherProperty/itemIWant',$apiResponse);
}
``` 

instead of :<commit_msg>Update build status url<commit_after>Nestis
======
[![Build Status][]](https://travis-ci.org/webdevvie/nestis)

A simple class to get a nested property or array key from an array or nested property.


Why
---
Having gone through several weeks of is_null($object) checks and not being able to reliably depend on the api's output 
I was using to always have the objects I decided this method needed to be made. Now I can do the following without 
the fear of running into a null or other random object that the api responds with:
 
```
public function getThatThingIWant($apiResponse)
{
    return $nestis->getNestedItem('someObject/someOtherProperty/itemIWant',$apiResponse);
}
``` 

instead of :
{'fraction_non_alphanumeric': 0.08387563268257411, 'fraction_numerical': 0.0, 'mean_word_length': 4.648979591836735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1805049', 'n_tokens_mistral': 412, 'n_tokens_neox': 381, 'n_words': 175}