public function isLocked($name)
    {
        if (!$this->has($name)) {
            throw new ItemNotFoundException($name);
        }

        return isset($this->locked[$name]);
    }
public function isLocked($name)
    {
        if (!$this->has($name)) {
            throw new ItemNotFoundException($name);
        }

        return isset($this->locked[$name]);
    }
public function isLocked ( $ name ) { if ( ! $ this -> has ( $ name ) ) { throw new ItemNotFoundException ( $ name ) ; } return isset ( $ this -> locked [ $ name ] ) ; }
Returns true if the item is locked.

@param string $name

@return boolean
Returns true if the item is locked .