Currently I have:
$content = ($propXml->xpath('//content/section[@name="accommodations"]/content'));
$content = is_array($content) && (count($content)>0)?(string)$content[0]:false;
echo $content;
Is there a more succinct way of doing this? It would be shorter if PHP had the ability to automatically access an assigned array, but I have to reassign and check for the length...