public function isLocked() { if (null === $this->getLockUser() && $this->getLockTime() === null) { return false; } return true; }