src/Provider/IronMqProvider.php
public function queueExists()
    {
        if (isset($this->queue)) {
            return true;
        }

        $queueName = $this->getNameWithPrefix();
        if ($this->cache->contains($queueName)) {
            $this->queue = json_decode($this->cache->fetch($queueName));

            return true;
        }
        try {
            $this->queue = $this->ironmq->getQueue($queueName);
            $this->cache->save($queueName, json_encode($this->queue));
        } catch (\Exception $e) {
            if (false !== strpos($e->getMessage(), "Queue not found")) {
                $this->log(400, "Queue did not exist");
            } else {
                throw $e;
            }
        }

        return false;
    }
public function queueExists()
    {
        if (isset($this->queue)) {
            return true;
        }

        $queueName = $this->getNameWithPrefix();
        if ($this->cache->contains($queueName)) {
            $this->queue = json_decode($this->cache->fetch($queueName));

            return true;
        }
        try {
            $this->queue = $this->ironmq->getQueue($queueName);
            $this->cache->save($queueName, json_encode($this->queue));
        } catch (\Exception $e) {
            if (false !== strpos($e->getMessage(), "Queue not found")) {
                $this->log(400, "Queue did not exist");
            } else {
                throw $e;
            }
        }

        return false;
    }
public function queueExists ( ) { if ( isset ( $ this -> queue ) ) { return true ; } $ queueName = $ this -> getNameWithPrefix ( ) ; if ( $ this -> cache -> contains ( $ queueName ) ) { $ this -> queue = json_decode ( $ this -> cache -> fetch ( $ queueName ) ) ; return true ; } try { $ this -> queue = $ this -> ironmq -> getQueue ( $ queueName ) ; $ this -> cache -> save ( $ queueName , json_encode ( $ this -> queue ) ) ; } catch ( \ Exception $ e ) { if ( false !== strpos ( $ e -> getMessage ( ) , "Queue not found" ) ) { $ this -> log ( 400 , "Queue did not exist" ) ; } else { throw $ e ; } } return false ; }
Checks whether or not the Queue exists

This method relies on in-memory cache and the Cache provider
to reduce the need to needlessly call the create method on an existing
Queue.
@return bool
@throws \Exception
Checks whether or not the Queue exists