How to check if an array has an element at the specified index?
<p>I know there is array_key_exists() but after reading the documentation I'm not really sure if it fits for this case:</p>

<p>I have an $array and an $index. Now I want to access the $array, but don't know if it has an index matching $index. I'm not talking about an associative array, but an plain boring normal numerically indexed array.</p>

<p>Is there an safe way to figure out if I would really access an $array element with the given $index (which is an integer!)?</p>

<p>PHP may not care if I access an array with an index out of bounds and maybe just returns NULL or so, but I don't want to even attempt to code dirty, so I <em>want</em> to check if the array has the key, or not ;-)</p>
