/** * @param Carrier $object * @return int */ protected function beforeDelete($object) { return $object->isUsed(); }