public function getObjectType($object = null) { $this->load(); if (!$object) { $object = $this->o; } if ($object instanceof Element\ElementInterface) { return Element\Service::getType($object); } else { return false; } }