public function isLocked() { // not checking STATUS_LOCK because there's another // state (STATUS_MOVED) which isn't handled yet. return $this->topic_status !== static::STATUS_UNLOCKED; }