How to extract an nid from and EntityFieldQuery I'm trying to figure out if a node already exist, I'm using the following code

$query = new EntityFieldQuery;        
$result = $query
                      -&gt;entityCondition('entity_type', 'node')
                      -&gt;propertyCondition('type', 'item')
                      -&gt;propertyCondition('title', $full_name)
                      -&gt;execute();

       if (!empty($result['node'])) {
         // do something
       }


The problem is this, when a result is returned, the structure of the result is this

    Array
    (
        [node] =&gt; Array
            (
                [96] =&gt; stdClass Object
                    (
                        [nid] =&gt; 96
                        [vid] =&gt; 96
                        [type] =&gt; item
                    )

            )

)


I'm trying to get the nid, but I can't figure out how to access it $

result['node'][0]


does not work. How do I get the nid in this situation
$nid = current($result['node'])-&gt;nid;