public function has($id)
    {
        if (strpos($id, '.') !== false) {
            $k = '$this->data' . "['" . str_replace('.', "']['", $id) . "']";
            eval('$has = isset(' . $k . ');');
            return $has;
        } else {
            return (is_string($id)) ? array_key_exists($id, $this->data) : false;
        }
    }
public function has($id)
    {
        if (strpos($id, '.') !== false) {
            $k = '$this->data' . "['" . str_replace('.', "']['", $id) . "']";
            eval('$has = isset(' . $k . ');');
            return $has;
        } else {
            return (is_string($id)) ? array_key_exists($id, $this->data) : false;
        }
    }
public function has ( $ id ) { if ( strpos ( $ id , '.' ) !== false ) { $ k = '$this->data' . "['" . str_replace ( '.' , "']['" , $ id ) . "']" ; eval ( '$has = isset(' . $ k . ');' ) ; return $ has ; } else { return ( is_string ( $ id ) ) ? array_key_exists ( $ id , $ this -> data ) : false ; } }
Returns true if the collection can return an entry for the given
identifier, returns false otherwise.

`has($id)` returning true does not mean that `get($id)` will not throw
an exception.
It does however mean that `get($id)` will not throw a
`NotFoundExceptionInterface`.

@param String $id Identifier of the entry to look for.

@return boolval true if found, false otherwise
Returns true if the collection can return an entry for the given identifier returns false otherwise .