src/IronMQ.php
public function peekMessage($queue_name)
    {
        $messages = $this->peekMessages($queue_name, 1);
        if ($messages == null) {
            return null;
        } else {
            return $messages[0];
        }
    }
public function peekMessage($queue_name)
    {
        $messages = $this->peekMessages($queue_name, 1);
        if ($messages == null) {
            return null;
        } else {
            return $messages[0];
        }
    }
Peek Messages on a Queue
Peeking at a queue returns the next messages on the queue, but it does not reserve them.

@param string $queue_name
@return object|null  message or null if queue is empty