Help for this page
if ($object->top && $object->top->bottom) { ... }
if (defined($object->top) && defined($object->top->bottom)) { ... }