protected function isUnlocked($lockId)
    {
        $unlocked = $this->session->get("unlocked");
        if ($unlocked && in_array($lockId, $unlocked)) {
            return true;
        }

        return false;
    }
protected function isUnlocked($lockId)
    {
        $unlocked = $this->session->get("unlocked");
        if ($unlocked && in_array($lockId, $unlocked)) {
            return true;
        }

        return false;
    }
protected function isUnlocked ( $ lockId ) { $ unlocked = $ this -> session -> get ( "unlocked" ) ; if ( $ unlocked && in_array ( $ lockId , $ unlocked ) ) { return true ; } return false ; }
Returns whether the lock is unlocked

@param string $lockId Lock identifier
@return boolean true if unlocked, false otherwise
Returns whether the lock is unlocked