public function exists($key, $scope = null)
    {
        if ($scope === null) {
            $scope = $this->getScope();
        }

        return $this->getContainer()->exists($key, $scope);
    }
public function exists($key, $scope = null)
    {
        if ($scope === null) {
            $scope = $this->getScope();
        }

        return $this->getContainer()->exists($key, $scope);
    }
public function exists ( $ key , $ scope = null ) { if ( $ scope === null ) { $ scope = $ this -> getScope ( ) ; } return $ this -> getContainer ( ) -> exists ( $ key , $ scope ) ; }
Checks if an cached object exists and return result.

This method is intend to check if an cached object exists and return result.

@param string $key   The id of the object to check
@param string $scope The scope of the object to check

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE if exists, otherwise FALSE
Checks if an cached object exists and return result .