public function isLocked($name) { if ($this->acquireLock($name, false)) { return !$this->releaseLock($name); } return true; }