php undefined index..using isset() with is_array()
<p>This is my code:</p>

<pre><code>if(is_array($ItemAttr["Actor"])){
  $Actors = implode(", ", $ItemAttr["Actor"]);
} else {
  $Actors = $ItemAttr["Actor"];
}
</code></pre>

<p>I'm getting <code>undefined index: Actor in **line 1** and **line 3**</code></p>

<p>I guess i should use isset() function. Can anyone tell me how to combine that function with is_array() function..?</p>
