I was wondering if there is any quicker way to check if the following exists: $object->user->address->street
than doing is_null on each level like?
if !is_null($object->user)
if !is_null($object->user->address)
echo $object->user->address->street
Thanks