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