public function exists($key)
    {
        try {
            $exists = $this->getContainer()->getPartialObject($key) !== false;
        } catch (BadResponseException $objFetchError) {
            return false;
        }

        return $exists;
    }
public function exists($key)
    {
        try {
            $exists = $this->getContainer()->getPartialObject($key) !== false;
        } catch (BadResponseException $objFetchError) {
            return false;
        }

        return $exists;
    }
public function exists ( $ key ) { try { $ exists = $ this -> getContainer ( ) -> getPartialObject ( $ key ) !== false ; } catch ( BadResponseException $ objFetchError ) { return false ; } return $ exists ; }
Indicates whether the file exists.

@param string $key

@return bool
Indicates whether the file exists .