<?php
$section = array('Endpoint' => 'Bla');
if (is_array($section) && isset($section['Endpoint']['class']))
echo '[bad] class is set?';
else
echo '[good] class not set.';
$section = array('Endpoint' => null);
if (is_array($section) && isset($section['Endpoint']['class']))
echo '[bad] class is set?';
else
echo '[good] class not set.';