code: protected function isUnlocked($lockId)
      {
          $unlocked = $this->session->get("unlocked");
          if ($unlocked && in_array($lockId, $unlocked)) {
              return true;
          }
  
          return false;
      }
docs: Returns whether the lock is unlocked
  
  @param string $lockId Lock identifier
  @return boolean true if unlocked, false otherwise