public function beforeDelete() { if (empty($this->config['beforeDelete'])) { return false; } return $this->config['beforeDelete']; }