I get this output as an array $vcard:
object(Sabre\VObject\Component\VCard)#11987 (6) {
  ["children":protected]=>
  array(1) {
    ["EMAIL"]=>
    array(1) {
      [0]=>"mail@domain.de"
    }
   }
}
With this code I get the value of EMAIL:
echo $vcard->EMAIL->getvalue()
The problem: If the key "EMAIL" doesn't exist I get this error:
Notice: Undefined index: EMAIL
Fatal error: Uncaught Error: Call to a member function getvalue() on null
How can I handle this error?
 
    