private function validateStatus($status) { if (!Topic::isValidStatus($status)) { throw new Exception('Invalid status.'); } }