public function isDocumentSignatureForObjectExist(SignableInterface $object) { $signature = $this->findOneDocumentSignatureBySourceIdAndType($object->getSourceObjectId(), $object->getDocumentSignatureType()); return $signature ? true : false; }