public static function isFirstElement(array $aArray, $sKey) { reset($aArray); return $sKey === key($aArray); }