public function hasShared($abstract, $checkMode = null)
  {
    $exists = isset($this->_instances[$abstract]);
    return !$exists || $checkMode === null ? $exists : $this->_instances[$abstract]['mode'] === $checkMode;
  }
public function hasShared($abstract, $checkMode = null)
  {
    $exists = isset($this->_instances[$abstract]);
    return !$exists || $checkMode === null ? $exists : $this->_instances[$abstract]['mode'] === $checkMode;
  }
public function hasShared ( $ abstract , $ checkMode = null ) { $ exists = isset ( $ this -> _instances [ $ abstract ] ) ; return ! $ exists || $ checkMode === null ? $ exists : $ this -> _instances [ $ abstract ] [ 'mode' ] === $ checkMode ; }
Check to see if an abstract has a shared instance already bound

@param             $abstract
@param string|null $checkMode optionally check the correct mode is also set

@return bool
Check to see if an abstract has a shared instance already bound